Answer Questions
ncholie6 Solution found
I have a solution which contains a winform project and a webservice. I am trying to step from the code in a form into the code in the webservice, but it doesn't work. I just step over the code in the service to the next code line in the form. Until this morning it worked fine, so I am a bit confused what might have happened since it suddenly doesn't work. In web.config I have < compilation debug = " true " /> I have searced a bit ...Show All
drtchmlp Data access with Nested DataList problem!!
hi all, i am using nested datalists in my ASPX page. I have a table MainCat where I have two(2) fields: Id and Name. And anohter tabel Details with five(5) fields: DetailsId,Id(foreigh key),ItemName,HitCount,DateAdded Now I want to use those MainCategories from MainCat table the Items(ItemName) for which have HitCount greate than 0(zero) I want to display like this: Maincate1 ItemName(1) hitcount ItemName(2) hitcount ... MainCat2 ItemName(1) hi ...Show All
Ken Shook Best practice while writing C# functions
Hi, Anyone has any idea about how to free up memory in C# functions. Does the GC collects memory after a function has executed How about setting variables to null after we are finished with them, or the GC will automatically set them to null Does setting variables to null in finally causes an overhead void TestFunc() { XmlDocument xdDoc = new XmlDocument(); try { // use xdDoc } catch { // handle cat ...Show All
Michael Fernandez How to lock up a file
I am writing some C# code which processes a set of files in a source directory and then moves the files to a destination directory. The code must be able to handle a situation in which one of the files might become locked while the files are being processed. I am not concerned at this point with how to handle the exception when a particular file is locked. What I need to know is how can I lock up the file You see, I must test my code against ...Show All
Sharad_Sharma_2k Which DB to use?
Hi, i am writing a program that uses a db. My db will have 3 tables and maximum of 5,000 records. I want that the customers will download my application... The proplem is that i don't know whether they hav a db engine or not. I heard about MDAC for mdb files... 1) How can i check in my installation wizard whether the client has MDAC installed on his local mashine 2) Can u suggest me somthing better firebird, d ...Show All
Justin Daw Using TransactionScope to share transactions between Methods
Hi, Before we start: This is all taking place on a single database. And I really don't want the overhead of Distributed Transactions. If I want to have lots of separate data access routines that do work on the database. Sometimes I want these routines to take part in a larger transaction. Sometimes they will just be running in their own transaction. I looked at TransactionScope and I thought this would do the trick. I now realise I w ...Show All
Patrick MCormick Check if a path is a folder of file
Hi! Simple question: Is there a way to find out if a path contained in a string variable corresponds to a folder or a file I agree with Taylor. The only thing you can do is follow standard practice and assume that a directory will not have a period (.) in the name. If you want to know the exact name you would have to create a parse routine that would take the string you mentioned and parse it out. Probably by a forward slash "/" or more ...Show All
B o g d a n Typed DataSet and WriteXml question about Namespace
Ok, I have a typed DataSet that was generated from an xsd schema using xsd.exe. The xsd schema is owned by a standards organization, so I can't modify it. The generated code sets the Namespace property of the DataSet (e.g. http://www.std.org/xml/name-space ). This controls the scope of elements read from an XML file when calling ReadXml and the file is read correctly with appropriate rows populated. Now, if I turn around and call Write ...Show All
10131011 problem with GCHandle.alloc()
this is my structure: [StructLayout(LayoutKind.Sequential,Pack=4)] struct TMN_REPARSE_DATA_BUFFER { public uint ReparseTag; public short ReparseDataLength; public short Reserved; public short SubstituteNameOffset; public short SubstituteNameLength; public short PrintNameOffset; public short PrintNameLength; [MarshalAs(U ...Show All
Sydelis FileSystemWatcher: watch for specific files?
HI, I want FSW to watch for specific files (not types) in the folder; for example: it will watch for file creation/modification of a.zip, b.zip, c.zip, etc. Is it possible Please suggest asap. Thanks in anticipation, Regards, Samik. Hi, You can set the Filter property to a specific filename also. See following article: http://www.c-sharpcorner.com/3/FSWatcherMB.asp Also read: http://msdn.microsoft.com/librar ...Show All
Jos Wilson Odd behavior
I am writing a web form in Visual Studio 2005. I have a text box and a submit button. When Submit is clicked the code behind looks at the text in the box and evaluates it for further action. That's the way it is supposed to work. The problem is that the text box is not actually realizing it has text in it.... I know, that sounds weird, and it is. The even more weird thing is that I have another form in the project that is working fine. I ...Show All
John Valente - MSFT Creating a Web Service
According to several examples on how to create a web service using WSE 2.0 when you enable WSE 2.0 for a project by selecting the two checkboxes on the General Tab references are automatically added to your project and in the Reference.cs (or Reference.vb) file of the project you will see two instances of the Service class created. Example: MyService and MyServiceWSE In my projects the references are being added to the project ...Show All
Brian Rak timeout when using ftp over SSL
Using the example at http://msdn2.microsoft.com/en-us/library/system.net.ftpwebrequest.enablessl.aspx I am attempting to connect to an FTP server over SSL. I can change the EnableSSL flag to false and connect to a non-SSL server with no problem. But when I try to connect to my SSL server with the EnableSSL file set to true I get a timeout message when the GetResponse mothod is called. I did a trace of the connectio ...Show All
Boris Jabes MS enum question
Hi. I am new to this and find it exciting but confusing at the same time. I have been told, from a great source, that enum is the best way to say, handle/manage error codes or let a method expect a type of Enum - it allows it to be more readable/managable and prevents any errors from occuring during development/testing. So you got to tie it down tightly, which I completly agree with. The way I used to do things was, if a method r ...Show All
ed777 Recieving text data from internet
My program needs to recieve one text file from internet to wark without mistakes. What is the best way to get text information from internet private void button1_Click( object sender, EventArgs e) { WebClient client = new WebClient(); client.OpenReadCompleted += new OpenReadCompletedEventHandler(client_OpenReadCompleted); client.OpenReadAsync( new Uri("http: //www.someurl.com ...Show All
