BactBob's Q&A profile
.NET Development How to cancel a DetailsView Insert/Edit operation?
I have a situation with an ObjectDataSource driven DetailsView, where the user is trying to insert a new record. The data for the new record needs to be validated on the server side (especially for validation steps that require calls to the database). If the validation fails (i.e. the user did not enter valid data), how can I cancel the insert /edit appropriately If I simply cancel the mode change in the ModeChanging event, then I end up with empty fields on the screen. How can I cancel the insert / edit and display the values that the user posted to the server My problem is especially on the second part. I can cancel the mode change, b ...Show All
Visual Basic TreeView
When working with a treeview, I understand how to select a node by clicking on it. However, if you are working with your tree in code, I am confused how to address/select a specific node. Say I wish to loop thru my tree tree starting at a specified point and collapse all the child nodes of it that have have children. Example: Base Level 1 Level 2 Level 2.1 Level 2.2 Level 3   ...Show All
.NET Development Reading elements and attributes?
Hi. I have a .xml file that I want to read, or it could also be a xml-string. It looks like this. < userlist > < group name = " Group1 " > < user >UserA </ user > < user alias = " UserBAlias " > UserB </ user > </ group > </ userlist > Now I want to read in all the users and print them out. I have come this far (c++): XmlTextReader ^trC = gcnew XmlTextReader( "userlist.xml" ); trC->MoveToContent(); while (trC->Read()) { if (trC->NodeType == XmlNodeType::Element && trC->Name == "user" ) & ...Show All
Visual Studio Team System I cant not find Web Test, Load Test options in VSTS. How to look for the same?
I have tried hard after loading the VSTS, but could not find the Web Test and Load Test options when i treid to add a new test in the application. What I could see is just Unit test and Ordered test. Next is ... Our organisation wants to go for VSTS as according to them, this would have to have a centrailised repository of the scripts. My question is: 1) Whether VSTS is a better solution for the testers than any mercury or Rational Robot product 2) Should we totally go and rely on VSTS for all types of testing that we do with other tools. Would VSTS give us complete solution with all extended features of testing as adding GUI po ...Show All
SQL Server extracting sql table column names
I am using the following to extract the column names of a table. I would like to do this for the whole database. Currently I am cutting the results into an excel spread. Is there a better way of doing this Here is the query SELECT name FROM syscolumns WHERE [id] = OBJECT_ID('tablename') The following query uses the Information_Schema.Columns to list all columns, data type, and the table names. Select C . Table_Catalog DB , C . Table_Schema , C . Table_Name , Column_Name , Data_Type from Information_Schema.Columns C join Information_Schema.Tables T on C . table_name ...Show All
Visual Studio Team System Team Foundation on Virtual PC / Connecting from host pc running VS2005
Ok, so I'm completely stumped. How do I get this working. I finally got Team Foundation Server installed (thanks to the SQL Server April CTP). I installed it on a Virtual PC running Windows 2003 Server, configured per the documentation (AD, Domain Controller yada yada). I created a domain called TEAMSYSTEM. Now the problem is, how do I get my PC which is already logged into a domain on my work network to even see the Virtual PC In previous experiments with Virtual PC running Windows XP, I just made the Virtual XP image part of a workgroup called "ZA" which matches the domain "ZA" that my pc was logged into.& ...Show All
Visual Basic foreach row in DataGrid. How to?
Hello, i use datagrid on winform application to display some data to user. The grid is readonly. I want to get cell value on each row. what the right way to do this thanks For Each d as datagridviewrow in DataGridview.rows MsgBox("Column Value =" & D.Cells("ColumnName").Value) Next ...Show All
Windows Forms CheckedChanged on load
I am using VS2005 and creating a Windows app using VB.net. At the top of one form I have a pair of radio buttons, which control the kind of data displayed below them in a DataGridView. The user can switch from Type1 to Type2 and vice versa by clicking on the non-checked radio button, if certain conditions are met. The problem is the RadioButton_ CheckedChanged event is raised when the form is first displayed, without any user action. Do I have some property set incorrectly If so, what property and what setting will give me what I want If not, is there some condition I can test to bypass the code in the CheckChanged event Thank yo ...Show All
Visual Studio Update - TestCase/Lab Download Available - FastTrack: MSHelp2 VS2005 Integration
Hi Friends, As an addition to the FastTrack: MSHelp2 VS2005 Integration paper, I built a simple Test Case/Lab H1 (.chm) package to use for practice purposes. The web page contents of the Lab package are the same as in the paper, but in .chm format. It's located at the same URL as the paper: http://helpware.net/mshelp2/frank/help2.htm There are two zipped downloads available: the .chm standalone file: link = Download CHM Version the TestCase/Lab folder: link = Download CHM Version with help source The "Download CHM Version with help source" folder includes the .chm, .hhp, .hhc, .hhk files, 2 x .css external styl ...Show All
Visual Studio Team System TFS Installation and Security Configuration
Hi all, We are going to to install Team Foundation Server on our AD Domain. We have certaing questions. The Installation Walkthrough document says that we need to have 3 domain accounts for TFS if the TFS server computer is going to be a part of the AD domain. Is there a specific reason for the TFSSetup (admin) account to be domain account Can't it be a local account Any resaons or documents or MSDN articles that says the reason for this Please help. Another query is, if I have an existing ASP.NET 2.0 Web Application which is not manages by TFS, how can I open this project so that it can be manged by TFS or to put it another way is there a w ...Show All
Visual Studio Shared Memory Provider: No process is on the other end of the pipe.
I'm unable to install SQL Express 2005 on a windows 2003 server. I have installed it on several 2003 servers, but for some reason, the one I need it on will not install. I have tried the manual install, and the command line install. Both give the same error. Setup gets to the point where it is configuring the server, and then I get the following error. SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe. At this point in time, I can go to services and see that the SQL S ...Show All
Visual Studio Express Editions converting access table to .txt file
Hi, I've been learning to program for a total 4 days. I needed to create a program that would output .txt files in an exact format and location to be read on the fly by a network of PC's running Scala advertising software. The advertising PC's can read a given line from a .txt file and scroll the info on plasma screens. I need create a text file for each day of the week containing information about event time, location and name. So I've created an Access 2003 database with a table for each day of the week, each table containing ID#, location, start time and Name columns. Using Microso ...Show All
Visual Studio Visual Studio Core Editor
Hi I have a managed VSPackage that is using an EditorFactory class to create an instance of the core editor and WinForms designer by using the CreateEditorInstance method. It creates multiple views of the same document. I have a LanguageService and CodeDomProvider that generates and parses the code. I can create a Form in the designer and drop controls onto it, say a button then click on the button and it will take me to the code view. The problem I am having is that the code view window is displaying in small text and sometimes only part of the window frame is displaying, the lower part is whatever was in the frame prior to t ...Show All
Visual Studio Restoring Add-Ins after Resetting the IDE
Hi, When i reset the IDE by "devenv /resetsettings" from the commandline, my add-in gets removed from the 'Tools' menu. Then i need to drag it from the Tools\Customize.. to the 'Tools' menu. Can anyone tell me how to restore my Add-in to the Tools menu after resetting the IDE or point me articles regarding this Hi Padma, When you do a /resetsettings, the command bars are reset to defaults and you lose the add-in's command on the Tools menu. At that point, the only way to programmatically restore the command is to re-add it using Commands2.AddNamedCommand2(). The code in your add-in's OnConnection eve ...Show All
Smart Device Development Deploying Application
Trying to deploy an application to windows ce.net device. ActiveSync is working between PC and mobile device but can't deploy from VS 2003.net When you go into "Device tools" in "optiions" the transport says "tcp connect transport" but I am connected via USB, is this correct Do I need a USB driver for VS 2003.net Any help greatly appreciated. are you getting any error messages are you getting the following error "Connection cannot be established..." Did you install active sync after visual studio 2003 have a look at this link http://support.microsoft.com/ ...Show All
