ericrtodd's Q&A profile
.NET Development how do I handle the DBNull fields
1/ I have a checkBox that I want to fill with a value from a Bit field in SQL server. But when the field has a Null value, it gives me an error. How do I convert the DBNull value to a boolean and how do I handle the DBNull values of my table columns. 2/ One more question: I ve seen a technical document about handling Null values from the database in the MSDN articles, but I didn t keep the URL. Does any body know it pls. Thanks. ...Show All
Visual Studio Team System Bootstrapping LoadTest from code?
Hello all, I think I saw this issue posted here a while ago - but I can't find the post now. My questions is: is tehre a way to configure a test in VSTS, and then write a bootstrapper to run different load tests on a schedule Ideally, I would have something like: LoadTest test = new LoadTest("myloadtest.loadtest"); test.Start(); But there is no Start() method or anything like that. Thanks in advance, --ben One option is to use ...Show All
Visual Studio Visial studio don't start Explorer
Dear Paul, i did it muninstalled and installed , i repaired it , i even uninstalled the Internet Explorer but it didn't help still mention "can't find Internet Explorer" it must be a place (like old and good INI File were we could type the enviroment and locations) in Visula studio . What project are you trying to start Can you create a new project and run it without any problems ...Show All
Visual Studio VS 2005 Final - Installation problems - LoadSetupObjectGuid() : vs_setup.dll
Hi, Can't install VS2005, released version on my WinXP Prof (Swedish), laptop. Started with a clean ghosted mashine yesterday with no beta or any other old stuff. Installad XP_SP2, WindowsInstaller 3.1. Run the installation (VS/setup.exe), 65 files are copied to the temp folder, the installation wizard starts and "Setup is loading installation components" and the progress bar stops after approx 40% I check the temp folder and in the dd_vserror80 ...Show All
.NET Development Key/ForeignKey performance question
I've read on various online performance sites that an Int performs better on a WHERE clause than say... VarChar(8). Assuming this is true, does this hold true with relationships Having an Int as a ForeignKey and Key seems a lot more efficient than a VarChar - in terms of space and speed. Thanks :) Yes, it's more efficient and therefore faster to use integers as compared to character fields as integers are ...Show All
.NET Development Javascript errors from asp.net application running on system having visual studio 2003 & 2005
I have a ASP .Net application using C# developed on Visual Studio 2005 beta 2 version. When the same application is copied to a machine having Visual Studio 2003 and Visual Studio 2005 , Javascriot errors start coming 'Object expected', which were otherwise not present. I noticed that in this machine aspnet_client folder was missing from the inetpub\wwwroot folder, which has the javascript files. I copied it from some other machine having onl ...Show All
Visual Basic Variable Declare Error issue VB 2005
I am having what I think might be a common problem. When upgrading my applications to VB 2005 from VB 2003, I have received a number of warnings regarding my declarations of local Strings without a default value assigned initially. Example of My earlier code: Dim tmpDriveType as Strin Warning treated as error : Variable 'tmpDriveType' is used before it has been assigned a value. A null reference exception could result at runtime. ...Show All
Software Development for Windows Vista TaskDialog editor in the Platform SDK? (where is it)
I saw a PDC demo last night on the integration with Vista (using the common file dialogs, integrating into the search, using task dialogs instead of long text message boxes, etc). While explaining the taskdialog APIs and showing a sample, the speaker used a SDK tool called TDEditor (task dialog editor), it looked like XAMLPad :-) but for the sdk.. xml syntax allowed you to create the task dialog easily/quickly, and then the tool generated the c ...Show All
Visual Basic RAS-API Failure? Always changes the Attribute "AuthRestrictions"
I use the RAS-API (rasapi32.dll => => XP SP2) to get the Data from a Phonebook and Write the Data to this. In the Case I change NO Attribute in the Phonebook the Attribute "AuthRestrictions" changes von 632 to 888. Does anybody know a solution We are using this vb-code: ================== Dim rtn As Long, lngCb As Long, lngBuffLen As Long Dim b() As Byte Dim lngPos As Long, lngStrLen As L ...Show All
.NET Development Problem sending XQuery in XML
Hello All genius people I am calling a web service using SOAP Toolkit as under Dim http As New MSXML2.XMLHTTP Dim url As String = "http://localhost/xquery/ultimusbis.asmx" Dim strSoap As String = "< xml version=""1.0"" encoding=""utf-8"" >" & _ "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance" ...Show All
Visual Studio Team System Line Breaks in Printed Work Item
If you print a work item, the description block doesn't show the line breaks. Is there anything that can be done in the short term to get this functionality to work I need to print out a bunch of scenarios for management and white space really matters. What to do Bug fix Do I really have to wait a couple months for this issue to be resolved in RTM ...Show All
Visual Studio Team System Baseless merge ?
I've been told a couple of times to workaround problems with branching via a Baseless Merge. Now I'm pretty sure I can guess what this does based on the name, but I can't find any way to accomplish this through the VS2005 UI. I've read all the docs I can find and I've searched google and all I've come up with is the command line option to do "h.exe merge /baseless" from MSDN and the reference from Buck's blog. The description in the docs b ...Show All
.NET Development XmlSpy - code generation for XSD
Now I'm using XmlSpy for generating C# program code from a XSD file. My problem is when I do some changs the XSD file then I need to regenerate new code every time, which is vary imflexible. eg. <xs:element name="AttributeName"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="FirstName"/> <xs:enumeration value="LastName"/> ...Show All
Windows Forms Disappearing Controls Visual Studio 2005
In my winform app, I have numerous .cs forms. One of the major forms (form1) has lost all of the controls in the form1.cs[Design]. Yet, in form1.cs[Desgin] all of the controls can be displayed in the properties display. I have reviewed form1.Designer.cs file and it seems to be set up the same as other forms which are working. I have reviewed the suspend/resume lines plus the Performlayout lines. They all seem to be there. The form1 did ...Show All
Visual Studio Tools for Office Good tutorial on VSTO
I need recommendation on good book/website to learn VSTO, esp for Excel. Any pointer will be greatly appreciated. A book with 5 starts on amazon and one i can recommend you is Visual Studio Tools for Office . ...Show All
