Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi guys,

When the ASP.net Page is Postback the controls inside 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 need to make refresh to the page, or what can i do?

Thanks
Posted
Updated 26-Apr-11 17:39pm
v3
Comments
Cyrus Neah 26-Apr-11 22:52pm    
Can you show the code ?
MrLonely_2 26-Apr-11 22:57pm    
Thanks man, but the code is very big and complicated.......but u can tell me about specific thing that u want to know and i will tell u.

1 solution

A postback call should ideally have been refreshing your page (or parts of the page if AJAX was used).

However you can try
MIDL
Response.Redirect(Request.Url.AbsoluteUri);
.
 
Share this answer
 
Comments
MrLonely_2 27-Apr-11 0:02am    
I want to know why the table and controls is disappear??...... i want that when the page is postback, it show the table and its controls easy ??...
CodeHawkz 27-Apr-11 0:44am    
Do you have a if (!isPostBack) { /* code */ } block that fires in your page load or a similar event? This might be the case.

Also, the easiest way is to determine this is to place a break point in the code where you bind the data to the data grid and see if it fires when you just post back.
MrLonely_2 27-Apr-11 3:07am    
Yes i have a if (!isPostBack) { /* code */ } block and i used break point and every thing seem normally...... only the controls not appear unless i go to page through Server.Transfer("~/Admins/EditUsers.aspx"); and i do not know what is the problem ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900