refresh XML control after OnClick

  • Thread starter Thread starter heximal
  • Start date Start date
H

heximal

I have this form that updates post.xml with the contents of TextBox
after OnClick of Button. Post.xml is displayed using a XML server
control. Is there a way to make it so after OnClick the XML server
control displays the updated post.xml?

This is the page.
..http://68.9.150.211:8000/Comment/WebForm1.aspx.
 
from your page, I cannot find any refreshing code of the XML control, you
simply saved the information to the file. In my opinion, XML control
cannot be so intelligent, you should add some code behind the line
"xDoc.Save(Server.MapPath("post.xml")) ".

And, another advice, if your website have many users , Database may be
better than XML file.

I'm not so sure about my words, so anybody who find something wrong, please
reply, to help heximal, and me.

Thanks.
 
I added

Response.Redirect("WebForm1.aspx")

This seem to fix it.
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top