开发者

how to cause refresh to ASP.net Page when page Postback

开发者 https://www.devze.com 2023-03-01 02:43 出处:网络
When the ASP.net Page is Postback the controls ins开发者_运维技巧ide the table is disappear, but when i click on button that has that code which cause transfer to the page:

When the ASP.net Page is Postback the controls ins开发者_运维技巧ide the table is disappear,

but when i click on button that has that code which cause transfer to the page:

Server.Transfer("~/Admins/EditUsers.aspx");

all controls appear easy with no problems.

Then,is there is need to make refresh to the page, or what can i do?

Thanks


A postback already performs a page refresh automatically.

If controls are disappearing, that suggests that you might not be creating them on the postback. Note that tables do not store their contents in ViewState. Is there any chance you are testing for IsPostBack in your page Load handler? If so, you must recreate the table on every load, whether a postback or not.

Beyond that, you'd probably need to provide a bit more specific information.

0

精彩评论

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