dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online MembersPhagu Mahato
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Forums » .NET » ASP.NET »

to use XML in ASP.Net?


Posted Date: 16 Jun 2008      Posted By:: Neeraj Kumar SIngh     Member Level: Silver    Member Rank: 2542     Points: 1   Responses: 6



hi,
what is xml?
i want to know that how we use xml in our aspx page?
plz reply with code in c#.

thanks.

Regards
Neeraj Singh




Responses

#249701    Author: kavitha      Member Level: Gold      Member Rank: 0     Date: 16/Jun/2008   Rating: 2 out of 52 out of 5     Points: 2

just visit the www.w3school.com for xml

http://www.codeproject.com/KB/XML/xmlxsltransformer.aspx
http://msdn.microsoft.com/en-us/xml/default.aspx



 
#249704    Author: aaaaaaa      Member Level: Gold      Member Rank: 0     Date: 16/Jun/2008   Rating: 2 out of 52 out of 5     Points: 2

HI

Just go through this link


www.w3school.com for xml



 
#249708    Author: Sanjeev Kumar      Member Level: Gold      Member Rank: 1734     Date: 16/Jun/2008   Rating: 2 out of 52 out of 5     Points: 2

hi, u can use in adrotator control or through xml control. another is use dataset.writexml("path") to write xml file.





 
#249720    Author: pappan      Member Level: Gold      Member Rank: 0     Date: 16/Jun/2008   Rating: 2 out of 52 out of 5     Points: 2

hi,
www.w3school.com for xml
http://msdn.microsoft.com/xml/default.aspx



 
#249742    Author: prathi      Member Level: Bronze      Member Rank: 0     Date: 16/Jun/2008   Rating: 2 out of 52 out of 5     Points: 2

http://www.c-sharpcorner.com/Articles/ArticleListing.aspx?SectionID=1&SubSectionID=79


 
#249949    Author: anish varghese      Member Level: Silver      Member Rank: 0     Date: 16/Jun/2008   Rating: 2 out of 52 out of 5     Points: 2

Extensible Markup Language (XML)
Code:this code is used in my webservices to save my sql data into xml.
string errorMessage = null;

XmlDocument myDatas = new XmlDocument();
string connectionString = System.Configuration.ConfigurationManager.AppSettings["sDBConnMBS"];

SqlConnection dbConnection = null;

try

{

dbConnection = new SqlConnection(connectionString);

dbConnection.Open();

}

catch (Exception ex)

{

errorMessage = ex.Message;

}
string SQL = "select * From tblApplicationTypeMaster";

SqlCommand GetCustomerCmd = new SqlCommand(SQL, dbConnection);

try

{

SqlDataAdapter custDA = new SqlDataAdapter();

custDA.SelectCommand = GetCustomerCmd;

DataSet custDS = new DataSet();

custDA.Fill(custDS, "tblApplicationTypeMaster");



myDatas.LoadXml(custDS.GetXml());

dbConnection.Close();

}

catch (System.Exception ex)

{

errorMessage = ex.Message;

}

finally

{

dbConnection.Dispose();

}





return myDatas;



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : TEXTBOx
Previous : Change password control in ASP.NET 2.0
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.