c# - method for XML dump or read to SQL 2005 server -



c# - method for XML dump or read to SQL 2005 server -

i have page app gets xml info flash media server, need fastest , efficient method xml info database. xml nodes columns perfect.

<%@ page language="c#" %> <%@ import namespace="system.io"%> <%@ import namespace="system.xml"%> <script runat="server" language="c#"> protected void page_load(object sender, eventargs e) { //response.write(datetime.now); string action = request.params["action"]; if (action != null && action != string.empty) { switch (action.tolower()) { case "add": add2db(); break; } } } protected void add2db() { httprequest request = httpcontext.current.request; system.io.stream body = request.inputstream; system.text.encoding encoding = request.contentencoding; system.io.streamreader reader = new system.io.streamreader(body, encoding); xmldocument doc = new xmldocument(); if (request.contentlength > 0) { seek { string s = reader.readtoend(); } grab (exception e) { //writelog("history db exception: " + e.message + " " + e.stacktrace); } } } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="head1" runat="server"> <title>xml dump</title> </head> <body> <form id="form1" method="post" runat="server"><% page_load(null, null); %></form> </body> </html>

my next question how query xml info in db

c# asp.net xml

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -