Christoph Wienands's Q&A profile
SQL Server login failed
I know this is probably a question that has been answered a million times, but it is in regard to SQLEXPRESS. I have built a small ASP 2.0 web app that runs fine on the local production machine when I go to view a gridview or a detailsview to delete or add records. However, when I try the site out on another machine, it runs fine (logins, etc), however when I go to the data page I get an error stating that the login failed for the ASPNET account. In SQLEXPRESS, where do I set the permission for the ASPNET account, or how do I go about handling this Thanks for the information. Brad Just some other information as I hav ...Show All
.NET Development datasets and direct database connection
Hallo , I am using Visual Studio.Net 2003 to develop a windows application. Using a Datagrid i display values from different tables in the database. If i want to delete or update the database, does it make any difference in updating the database directly or using datasets in sense of speed or performance of the programm I mean like string myExecuteQuery = "delete from mytable where name ='john'" OdbcConnection myConnection = new OdbcConnection(myConnectionString); OdbcCommand myCommand = new OdbcCommand(myExecuteQuery, myConnection); myCommand.Connection.Open(); myCommand.Exe ...Show All
.NET Development WSE 2.0 Authentication Scheme For WebServices
I am running MS VS 2003 with WSE 2.0 I am trying to build a user authentication scheme for my webservices. Below are the steps I am trying to follow: 1) Initially the user must provide a valid username/password and authenticate to a WebService/TokenManager at which point the user will be issued a unique token (Guid). 2) This unique token (Guid) will be stored in the Context.Cache of the Webservice (with a back up in the DB) 3) All subsequent calls to web services will require the unqiue token to be passed with it. I wanted to use WSE 2.0 to handle all authentication. I am able to get the Username/Password to authenticate against the DB wit ...Show All
Windows Forms Listview header
hi please anyone tell me to change Header Color of System.Windows.Forms.Listview control Thanks Raju Here is a link to a code project article on Customizing the List view control, it has some information of moderfiying the header that might help. Customizing the header control in a listview http://www.codeproject.com/cs/miscctrl/customheader.asp ...Show All
Visual Studio Express Editions Can not download the C# e-book from benefits portal
I, too, have another kind of a problem. I just recently registered VC#, and I received the email with the Benefits Portal. When I try to download any of the goodies(I am a complete newbie-begginer-so I am very much interested in the e-book .pdf file) I get only a dreamweaver file. Can anyone help me As you have a different problem I split the post so you have a new thread instead. are you trying to download from this page https://connect.microsoft.com/downloads/downloads.aspx SiteID=40 This download https://connect.microsoft.com/Downloads/DownloadDetails.aspx SiteID=40&DownloadID=242 What hap ...Show All
Windows Forms how to use picturebox
Hi! I have a question that how to use picturebox. If I want to load pictures from a file. My reference says something like; pictureBox1.Image = Image.FromFile( ); What would it be after FromFile Should I put file address of the pictures Thank you for help. Replace " " with the file path, for example : PictureBox1.Image = Image.FromFile("C:\Test.Jpg"); This code is only to change the image of the picture-box at the runtime, you can change it manually using the designer. ...Show All
Visual Studio Reference to ToolWindow from within Custom Tool
I've created a ToolWindow in a VsPackage. In the same assembly I also created a CustomTool for generating some code. How can I get a reference to the ToolWindow I've created via the VsPackage Is this possible Hi Stefan, If your custom tool implements IOleObjectWithSite, you should get an IServiceProvider from which you can retrieve the IDE's IVsUIShell interface, and then invoke the FindToolWindow method. There is a sample in the December CTP drop of the Visual Studio SDK, called "GeneratorSample" that illustrates a single file generator (aka custom tool) that also implements IOleObjectWi ...Show All
Visual Basic How do you keep an VB app in the foreground
I have an app(1) that uses Runasdll to call another app(2). How cn I keep app(2) in the foreground while is is running Or use AppActivate method to reactivate the App1. If your trying to write a multi-threaded application you may want to check out the backgroundworker control in 2005 ...Show All
Windows Forms How to programmatically get the Left of a datagridviewcolumn?
I have binded a dataset to a datagridview with its column size adjustable. How to obtain the position of the left side of a datagridviewcolumn Thanks You can use the DataGridView:: GetColumnDisplayRectangle method. Here is how to find the left side for the first data grid view column: Rectangle rect = this .dataGridView1.GetColumnDisplayRectangle(0, true /*cutOverflow*/ ); MessageBox .Show( "left side for the first column is " + rect.Left.ToString()); Hope this helps. ...Show All
Software Development for Windows Vista Does Dec CTP have updated Ink analysis?
Does the Dec CTP of the Windows SDK include the pieces that were in the Mobile and Tablet SDK In particular the new Ink Analysis APIs Jamie, Thanks for the follow-up. By adding IALoader.dll to my references all seems to be working again. I am still trying to figure out the rationale for where things are. Some are in the run-time components, some in the SDK to be copied into the application install, some in reference assemblies, others elsewhere, etc. ...Show All
.NET Development Object Persistance with .NET
Greetings. I am a IT Engineering student from spain. I'm learnin Design Patters at School with Java, but I work with .NET. Is there in .NET a Object Persistance Framework, or something similar, so I don`t have to do use SQL . I mean, if I design my aplication purely Object-Orientated, there is a point that I should design classes for data access (or I could implement the data access in the classes I already have). But if I had a this Framework, the only thing I must do is configure it, describing the database and that's it. In java there is something called Hibernate. Is there something similar in .NET Thank you very ...Show All
Windows Forms Basic Question on Properties returning a class
Hello everybody, I think it would be easier giving an exemple to explain my problem. Assume you create a user control and you have a custom class called CustomClass. In the user control, I declare the fallowing: [VB Code] Private mTest1 as Point Private mTest2 as CustomClass Public Property Test1 as Point ... End Property Public Property Test2 as CustomClass ... End Property [VB Code] So far ...Show All
Visual Studio Team System Install issues with 2005 developer edition ctp
Hi, I am trying to install the SQL Server 2005 Developer Edition CTP that came along with the VS2005 Beta 2 Team Foundation Server. I am not able to install the software. Setup always exits with this message. "--------------------------- Windows XP Setup --------------------------- Please go to the Control Panel to install and configure system components. --------------------------- OK --------------------------- " Please help! Thanks abdullah If it asks you to provide a strong password use a batch file to run setup.exe EX: create setup.bat with the following ...Show All
Windows Forms How to insert, update, delete using DataGrid ?
Hi I am develoing a C# and MS Access application in which I have to display table rows and columns in a DataGrid AND in the same form I have to perform insert, update, delete operations. Displaying the table's contents is not a problem but I need help in implementing insert, update and delete operations. Thanx. Hi, Implementing a Delete, Insert and Update operations you must have a DataAdapter and define its Delete, Insert and Update commands. You could use this adapter against your datasource and call the adapters' update method... SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM table1", conn); ...Show All
Visual Studio Installing VS2005 web service on system with TFS/WSS
We would like to install VSS2005 on the same system as Team Foundation Server. I have installed it and am having trouble accessing the server via Internet plugin from VS2005. VSS2005 works and I can access the database on the server from VS2005 using the regular plugin just fine. I enabled the database for Internet access, setup sharing/authentication per Alin Constantin's instructions. I went into WSS server confg and excluded the SourceSafe path. I can browse to the server asmx page and get the runtime error. But when trying to access the server from the plugin I get "A connection with the server could not be established x80072EFD ...Show All
