Answer Questions
Bachi delete a row from an xml file using DataView
I have the following code that is deleting a row from an dataview, then writing the dataview to an xml file: string filePath = Server.MapPath(@"~/Home/XMLMenus/user_favorites/someFile.xml"); DataSet ds = new DataSet(); DataRow dr; string someValue = "someValue"; ds.ReadXml(filePath, XmlReadMode.InferSchema); DataView dv = new DataView(ds.Tables[0]); dv.Sort = "someColumn"; int i = dv.Find(someValue); if (i ...Show All
karenpcg Dataset in ArrayList
Can I store my Dataset in Arraylist Is possible bye murali Thank you venny for u'r kind rply. bye murali Yes u can store the Datasets in Arraylist. You can store any type of object in ArrayList . Example code follows ArrayList ar = new ArrayList(); DataSet ds = new DataSet("DataSet A"); DataTable dtA = new DataTable("Table A"); DataTable dtB = new DataTable("Table B"); ds.Tables.Add(dtA); ds.Tables.Add(dtB); ...Show All
quilty sql Caching
against a 64 sql/ 64 bit aspx page does not cache go aspnet_regiss.exe -i in the 64 framework no sql caching switch 32 bit framework and all is fine Same Machine weird but I reregistered .net again with aspnet_regiis and all seems fine I don't know of any issues with Sql Caching and 64-bit. Can you please provide more information There are two ways to do Sql Notificatio ...Show All
Radha Mukkai installing .net 1.0a AFTER 1.1 and 2.0 ??
for certain reasons i needed to install the .net framework 1.0a and the sdk on a winxp system that already has 1.1 runtime and sdk and 2.0 runtime and sdk. i checked the option to register environmental variables during the 1.0a sdk install. do i now need to go back and do a repair install or all the 1.1 and 2.0 runtime and sdk installs or is it ok to leave it like this You will be able to leave everything as is. If you like, you can ...Show All
Sibusiso Changing label.font.properties as runtime
I want to be able to change the properties of a labels font at runtime e.g. bold or size, but the properties are read-only How do I change them Any ideas Thanks Create a new Font object with the desired look and assign it to the Font property. ...Show All
Success single app instance
Hi, how can I make my application single instance I mean, when it’s double click to run, it checks if already there’s one instance running. If so, it close itself. I know that its very easy to do in C/C++, but How I do it in C# How about use a named mutex Create the mutex using code such as: bool firstInstance; Mutex mutex = new Mutex( false , "Local\\" +someUniqueName, out firstInstance); // If firstInstance ...Show All
niversen TableAdapter insert/update/delete order
I have a typed-dataset with a dozen or so tables which are hooked together with typical on-to-many and many-to-many relationships. I'm using table adapters to do the CRUD actions. For updates I was using: //Update parent tableadapter_parent.Update(dataset.parenttable); //Update child tableadapter_child.Update(dataset.childtable); But I am getting foreign key reference errors when deleting records because the adapter is trying to dele ...Show All
JIM.H. how to check the internet connectivity
My computer in connected to a LAN which inturn is connected to the internet through the gateway router. so the IP address i use is the private IP address. I want to check the internet connectivity from c#. How can i know whether or not the internet connectivity is working although my LAN connection is working very well Please help me with this problem. While mechanisms exist for determining if there is a ne ...Show All
Kevin Herbert Intercepting an Interface call to a Proxied Object?
This is my interface that my target object implements. public interface IScript { void RunScript(string str); } This is my target object, it inherits MarshalByRefObject and implements IScript public class Device : MarshalByRefObject, IScript { ... public void RunScript(string str) { DoSomethingHere(str); } } This is my RealProxy class, it passes in Device as it's target type in the constructor.& ...Show All
Amit Singh (Paxcel) object in AppDomain
How can I create an object in a given AppDomain I have the following class and interface, public class ProcessXXX { public ProcessXXX() {...} public ProcessXXX( IConfiguration config) {...} } public interface IConfiguration { string DBConnection { get ; } } The default constructor creates the real object that is used by ProcessXXX. The second constructor is used d ...Show All
NeelTiwari [URGENT] COMPILING AND RUNNING THE .NET APPLICATION on LINUX
Hi: Question: I have developed an application containing 2 projects (one is of type class library and the other is a windows application (.exe) ). I want to compile and run the application on Linux. I know that there is a platform for linux called MONO, but can't find a good article on COMPILATION AND RUNNING THE .NET APPLICATION. I have found some articles but they only contain the compilation of single file e.g. HelloWorld.cs and thing like th ...Show All
JMattias .NET 2.0 Compressing Folders
Hi There Is there any easy way to use the System.Compression tools in .NET 2 to compress an entire directory All my source code is kept in a single directory so I have written a utility that recursively backs up the directory and compresses each file as it goes. The utility has no GUI. I have attached the program here, I would be interested to get any feedback as I am still learning C#. TIA Bill using System; using ...Show All
Jane2006 Using System.Net.Mail class to send mail.
Hi, I was coding a class to send mail via SMTP, but I found that in Framework 2.0 you have System.Net.Mail to do that task. The classes works fine to send mail on a server that does not require authentication. Unfortunatelly, I can't get it to work on a base64 encrypted server. The process of logging in that type of server is easy, so I expect an bool attribute, let's say, "IsAuthRequired", but it does not exists. From what I've ...Show All
rternier ThreadPooling in c#
I have to upload 70 files using ThreadPooling and code i have used is as below.I have set the maxthread size as 10.But it is uploading only 8 files. Please tell me how to make it work.Also if u can please give a sample code.Help will be greatly appreciated. WaitCallback callBack = new WaitCallback ( UploadFileEx0 ); for ( int i = 0 ; i < 70 ; i ++) { if ( true == isThreadAvailable ( true )) { T ...Show All
Joe Dawson How do i obtain an MCSD
I was interested in obtaining my certification in Software Developing and was wondering how could i get started on this particular event hey Vikram, I was wondering which on is the best to obtain the MCSD of the MCAD I know one is for Applications and the other is Solution Developing but what are the things that make it different Hey Vikram, How do i get my Asp.Net for C# to work i am getting the error messege saying ...Show All
