C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Visual Studio »

Write Xml File using Asp.net


Posted Date: 04 Jul 2009    Resource Type: Code Snippets    Category: Visual Studio
Author: R.Jaya kumar (JK)Member Level: Diamond    
Rating: 1 out of 5Points: 10



how to create and write xmlfile in asp.net using dataset try this simple code

Server Side

Protected Sub bt1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles bt1.Click
dt = cls1.Crr("Select * from tbemp", "test1")
ds.Tables.Add(dt)
ds.WriteXml(Server.MapPath("XMLFile2.xml"))
End Sub


Client Side


< html xmlns="http://www.w3.org/1999/xhtml" >
< head runat="server" >
< title >Untitled Page< /title >
< /head >
< body >
< form id="form1" runat="server" >
< asp:Button ID="bt1" runat ="Server" Text ="CreateXml" / >
< /form >
< /body >
< /html >





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Write Xml File using Asp.net  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Ms-office Applications to run Asp.net
Previous Resource: Types of Msgbox
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use