By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,616 Members | 1,198 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,616 IT Pros & Developers. It's quick & easy.

refresh XML control after OnClick

P: n/a
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.
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

"heximal" <ma***@yahoo.com>
??????:6f*************************@posting.google. com...
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.

Nov 18 '05 #2

P: n/a
I added

Response.Redirect("WebForm1.aspx")

This seem to fix it.
Thanks.
This is the page.
.http://68.9.150.211:8000/Comment/WebForm1.aspx.

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.