Eric Kim's Q&A profile
.NET Development DataSet bug when read from XML
There is a bug in table constraint enforcement when the DataSet schema is read from XML. If you remove a DataColumn from a table, the code that checks non-null constraints doesn't register that a column has been removed. The following code will generate an IndexOutOfRangeException. namespace ConstraintTest { class ConstraintTest { [STAThread] static void Main( string [] args) { DataSet ds; // Read the schema for a two colu ...Show All
Visual Studio Changing crystal reports connection string dynamically
I need to switch between the databases at runtime for my crystal reports in .NET 2.0. Is it possible to change the crystal reports connection string at run time in .NET 2.0 Please provide me any sample code which illustrates dynamically changing the connection string of crystal reports at rune time. Thanks in advance, Vaishu Hi, If I understand well uor cristal report is linked with Datatbase 1 and in run time u want to ...Show All
.NET Development how to add DTD text in xmldocument
I want's to add this <!DOCTYPE root [ <!ELEMENT root ANY> <!ELEMENT Person ANY> <!ELEMENT Customer EMPTY> <!ELEMENT Team EMPTY> <!ATTLIST Person SSN ID #REQUIRED> <!ATTLIST Customer id IDREF #REQUIRED > <!ATTLIST Team members IDREFS #REQUIRED>]> for validating my xmldocument which i create at runtime. How Could I add it in the start of my xmldocument Hi Kamili47, Use the Cr ...Show All
Visual FoxPro migrating VFP app to .net (architecture question)
Hello everyone! I'm a fairly experieced database developer (SQL Server primarily, and Oracle quite a bit less). My experience with .net is primarily vb.net to built asp.net applications, using web services as my middle man. I just started at a new company which has a few legacy systems, one of which is a rather large FoxPro application. There are a host of problems associated with it, primarily data conflicts. Because the company has grown so mu ...Show All
.NET Development My.Settings.Upgrade
I am developing a project in VS 2005, and I am working with deployment. I have decided to use a setup project, and all is working fine. However each time I deploy an upgrade the user settings get overwritten. I discovered the My.Settings.Upgrade method, and found all I could find out about it, and still am not quite sure how to use it. MSDN says: You can use the Upgrade method in conjunction with the GetPreviousVersion method to migrate applic ...Show All
Visual Studio 2008 (Pre-release) how to support datetime datamember or I am on a wrong way?
First I define a datacontract: [DataContract] public class Order { private DateTime mTime; [DataMember] public DateTime ServerTime{ get { return this.mTime;} set { this.mTime = value;} } } Then in a service I use it like this: ...Show All
SQL Server Uninstalling SQL 2005 Completely
hi all, i have gone through the thread which had the same subject but still it didn't work out.. i have even removed SQL 2005 install bits using msicuu2.exe but still i can find SQL 2005 in my programs list in start menu.... Can anyone please let me know how i can remove SQL 2005 completely when it does not show up in Add/Remove programs and WindowsInstaller Cleanup Tool but i can still find it if i navigate to Start --> All programs ...Show All
SQL Server Reporting services and VBCrlf
Hi,I have a textbox in the report that contains the VBCrlf for carrige return(enter) in the textbox. When i watch the report in the prieview tab in the VS.NET every thing is o.k. When i deploy the report and watch it in the report manager the VBCrlf has no effect. The html source shows the enter but without the <br> as it should be. I tried to inject <br> string to the textbox but the htmlencoding shows lt;btgt; Any id ...Show All
Visual FoxPro DELETE FOR-PACK ON BUFFERED TABLES
I have a buffered(5-optimistic )tables in vfp 9.0.when i use delete the records arent deleted i use tableupdate but they dont get deleted.i use pack but i get a msg saying table should be in no buffered mode i then change buff to 0 (not programmatically with cursorset.. but from dataenviroment) but is still get the msg! how can i delete a record table must be in buffered mode Deleting marks the record as deleted ...Show All
Visual Basic access the value of a hidden text box
I'm using visual studio 2005. I'm filling about 10 data bound text box's on the form load event. I can access the text values whith the visible property set true but not whith it set to false. Hi, Please try Label for hidden values (try adding new form and test on it with both text box and label). Hope this will help. ...Show All
Visual Studio Express Editions Installation Problems
I open the installer and get to click the "Install >" button, after this the setup goes to the d/l screen and waits a bit, like it is connecting, then comes up with The following item failed to download: Microsoft .NET Framework 2.0 Setup has stopped because the item listed above could not be downloaded. and the normal error screen asking for a report of the problem, which I have sent. This is what was contained in th ...Show All
Visual Studio -Y<username>,<password> Doesn't work
I am using ss.exe from the command line and I would like to be forced to enter the username and the password. however even if i hard code in -Y<username>,<password> it still acts as if the option was just -Y<username> meaning that it disreguards the password and still prompts for it. I would like to be able to prompt at the beginning of my script for a password and then put that variable in the <password> part myself but ...Show All
Smart Device Development Emulator softkeys
I recently upgraded to VS 2005 FC1 and now I have a problem. For some reason, the Windows Mobile 5 Emulator's softkeys are mapped to numeric keys. For example, pressing the left softkey while in the home view will result in a '1' being entered instead of display the start menu. Pressing the right softkey will result in a '2'. Pressing the home and back buttons work. Pressing the Green phone button will result in a '3' and the red phone button in ...Show All
Visual Studio Team System DataDriven unit test/ TestContext DataRow support in C++
I've created a C++ test project in VS2005. I'm able to connect to my database, but I don't know how to make a call to access the database. The examples show to use TestContext.DataRow [<column name>] but this example is for C#. Where's a good place to find examples for C++ Good question. I can't believe we didn't include MC++ code samples! :( Here is an ...Show All
Visual Studio 2008 (Pre-release) Dynamic XAML
Hi, Can we do any changes in XAML dynamically ex: I have 5 links to be displayed in XAML, after sometime I may have 'n' links to be displayed. So is it possible for 'n' items to be displayed. (n=1,2,3,4.. decided runtime) If yes, can I get sample with code behind Thanks Taruna Of course you can do that. For example, if the links are in a panel, use the panel's Children property to add/remove them. ...Show All
