I have Created One XML File.....
Node :
<Patient>Kanna</Patient>
<Id>12</Id>
And I transferred those values to SQL Db. Using C#.Net
Now I added One More Value in Same XML File
<Patient>Kanna</Patient>
<Id>12</Id>
<Patient>Raja</Patient>
<Id>13</Id>
Question Is : How to append New Value to SQL Db....
Can U Suggest Me any Idea ?
...
I came across the solution I need in PHP but I need one that I can use that's just as simple in an ASP.NET environment.
I am combining 4 transparent png images to create a single image (Lets say its a custom certificate) with one of 4 background images, one of 4 header logos, one of 18 category titles and another variable image that sta...
I found an empty for statement in an existing bit of code and I'm wondering what it does and is it "safe". It just feels wrong.
for(;;)
{
//some if statements and a case statement
}
Thanks!
...
I'm successfully creating a Service Reference for a silverlight application by pointing to a local wsdl file. The preview pane shows the 6 methods avaialble in this wsdl.
However, the generated proxy seems to have no knowledge of those methods, so I cannot find a way to call them.
Been fighting this for a while, what the heck is goin...
The following Regular Expression (url) pattern doesn't match the named group :
^/(.+?)/(.+)?(_p(?<Page>\d+))?
I don't know why this doesn't work in optional block:
?()?
What's the problem with this pattern and how can i get the correct result?
...
I am new at this. I am trying to populate a datagrid from a table source. My code is attempting to do two things.
First it populates a dataGrid with columns from a table. Then it adds a column called "SELECT" at the end of the grid. This select is CheckBox. However, when I execute this code, it adds the "SELECT" column twice.
I want to s...
Are there any components or class libraries (.NET, Silverlight, Javascript) which are able to visualize / navigate data in a many-to-many relationship? Similarly as a Treeview is able to visualize / navigate parent-child related data.
I'm looking for a way to view some object and N levels of related objects.
...
I have a class called Questions. This Questions has properties QuestionID and QuestionAnswer. While iterating through this List of Question in foreach, I have to find .QuestionID = 12. If I find .QuestionID = 12 then I have to immediately assign a value to .QuestionAnswer = "SomeText" of .QuestionID = 14.
I don't want iterate again in...
For along time, I've been using event-driven programming for all my windows application. i.e. handle a selected index changed / Text changed etc.. events. but lately I've been using the INotifyPropertyChanged interface and ObservableCollection class to handle data changes.
Do you see any possible problems that I could face by using this...
For some reason, I have to move a lot of C# code from Visual Studio 2010 to Visual Studio 2008.
I edited my sln file to reflect the changes
Microsoft Visual Studio Solution File, Format Version 11.00
to
Microsoft Visual Studio Solution File, Format Version 10.00
It allowed the solution to be loaded into VS2008. Afterwards I edited...
Let's say that what I want to do is to validate one million strings, and each validation takes a couple of seconds.
My approach:
I have an array of threads declared like this:
Thread[] workers = new Thread[50];
I don't have all strings in an array, they are got through some calculations, then I don't have all of them when I start th...
I've been looking all over the place, but I can't find anything. Can anyone shed some light on this?
...
Is there are way to set ARP cache entry in C#?
The only way I have found is related to use of arp utility Address Resolution Protocol
Static entries added with the arp -s command are not expired from the cache.
There are related post about How do I access ARP-protocol information through .NET?
...
I retrieve a stream.
Everything works fine but the encoding of Umlaute (ä,ö,ü,ß).
What is
NäüßÖ´sas so viele Umlaute
becomes
NäüÃôsas so viele Umlaute
I tried Ascii-Encoding and a few other ones as the following source shows.
ASCIIEncoding encoder = new ASCIIEncoding();
Encoding enc = Encoding.GetEncoding(28591);
stri...
Let's say I have a WCF service, it has multiple clients, in multiple languages. It would be appropriate to use the resource files and satellite assemblies to provide localized resource strings.
Now if those resource strings become branded, for example two clients in the same country, same language, but have different terminology, would ...
I had problems with Umlauts in ASCII so I encode my Stream as UTF-8 now, which works, but it brings up a problem. I normally read 4 Bytes before ARTIST to determine the length of ARTIST=WHOEVER using
UTF8Encoding enc = new UTF8Encoding();
string response = enc.GetString(message, 0, bytesRead);
int posArtist = response.IndexOf("ARTIST")...
I'm accessing database to bulk populate fields.
PopulateAobjs();
PopulateBobjs();
PopulateCobjs();
...
Once the values are populated, I store the entities in a Dictionary<Id, Entity>.
I'd like to make this process lazy, in such a way that, if I don't need C objects then I don't need to call that method. etc.
How can this be done?
L...
The question
Given a path like thus:
G:\path\foo\..\bar\baz.txt
Which we can immediately parse in our minds, and as the OS will parse as:
G:\path\bar\baz.txt
What's the fastest way to do that programmatically? In other words, does a library function already exist that will do this for me cleanly so that I don't botch it myself.
M...
Are there any tips, tricks and techniques to prevent or minimize slowdowns or temporary freeze of an app because of the .NET GC?
Maybe something along the lines of:
Try to use structs if you can, unless the data is too large or will be mostly used inside other classes, etc.
...
Is it wise to build a large application entirely based off SOA? Or just some portions? User account logins, accounting, gis mapping, sales, etc?
In other words, would it be wise to build a GUI to such an application in HTML & Javascript which does all it's exchanges via ajax to .NET web services on the back-end?
I can't see it worth ...