开发者

How to refresh page?

i am writing an asp.net page with c# - i have DB and a table on the page which view the DB content i have function that update a line in the DB - i call it by clicking on a button- the 开发者_如何学Cfunction refresh & update the DB- but not the page- how can i do that???


If you have a databound control that's displaying the data, try calling it's DataBind() method

dataBoundControl.DataBind()

else if you are manually constructing the table that displays the data, call the routine that builds the table after you update the database.


You can redirect

Response.Redirect(Request.RawUrl)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜