Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to pass a xml file as a parameter in to stored procedure in c#.net(window application)

its urgent

thanks in advance
Posted

cshuhh wrote:
its urgent


No, it's not. If you were in a place where any task would be urgent, you'd own some reference books, AND you'd bother to search for an answer.

Do you mean you want to store XML, or do you mean you want to use XML to specify values for the query ? OpenXML is how you use XML for paramaters.

This[^] might both answer your question and give you ideas on how to use a search engine. If you want to respond to fill in the gaps in your question ( like what you expect to do with this XML file ), edit your post to add those details.
 
Share this answer
 
AR@JR, your advice is beyond terrible. You've spent today looking back for questions to answer, and I respect the effort, but if you don't have something worthwhile to say, why post at all ? As for your insults, it amuses me to think that you think I might care, but I just feel bad for you. you're obviously out of your league, given the bad answers you're offering, and looking for approval that you're not yet capable of earning. Sucks to be you.

XML is just text, you can pass it as a string. Using the webcontrols namespace to pass XML is a ludicrious notion. Using an XmlDocument would make more sense, if it needs to be validated as XML.
 
Share this answer
 
Dear sir Graus,
The answer I posted works fine in my experience. I was following your example by giving only hints. Now may be you want me to vomit the whole code. East or west man something like you stinks.....
 
Share this answer
 
using System.Web.UI.WebControls;


yourfunction(Xml xobj)
{
// process xobj which contains the file you passed
}

as for christian graus, he is actually very knowledgeable and understandably frustrated by the "urgentz sendz codez" line of questioning!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900