Last post Aug 31, 2013 09:51 PM by asalam345
Aug 08, 2008 12:39 PM|Jashu|LINK
I am retriving xml file from database and i want to display that xml file in multiline textbox in xml formate only.
can any one please help me in this area?
thanks in advance
Aug 13, 2008 06:32 AM|Samu Zhang - MSFT|LINK
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" Height="251px" TextMode="MultiLine" Width="510px"></asp:TextBox></div>
protected void Page_Load(object sender, EventArgs e)
string xml = "<root><name>aaa</name></root>";
XmlDocument doc = new XmlDocument();
StringBuilder sb = new StringBuilder ();
XmlWriterSettings settings = new XmlWriterSettings ();
settings.Indent = true;
XmlWriter writer = XmlWriter.Create(sb, settings);
this.TextBox1.Text = sb.ToString();
Aug 13, 2008 07:28 AM|Jashu|LINK
HI Samu Zhang,
Thank you very much.I am searching for this solution from the last 12 days. It is working fine.
Aug 31, 2013 09:51 PM|asalam345|LINK
this function only work in Page_load but I want to do it by clicking a button what can i do?