Hi,
I am using ASP.Net 2.0 version and Windows'XP OS. I am useing the Grid view
control to display the user details along with the paging concept provided by
the grid view control.
When i click the paging link (2,3,4.. ) it produces the result properly, But
my problem is when i tried to press the Refresh button[F5] in the explorer,
it throws the following popup alert message
“---------------------------
Microsoft Internet Explorer
---------------------------
The page cannot be refreshed without resending the information.
Click Retry to send the information again,
or click Cancel to return to the page that you were trying to view.
---------------------------
Retry Cancel
“
So that i have changed the Method = “GET” in the form tag. Now the popup
message is not displayed while i press refresh[F5] button, but in the URL
junk value is keep on appending and it goes beyond the 256 character.
What i want is,
1.Shouldn't display any popup message while i press the refresh button in
the exporer.
2.Shouldn't append any junk values to URL path.
Can any one help me to come out from this problem ?
Sergey Poberezovskiy - 25 Jul 2007 07:04 GMT
Loyola,
When you use built-in paging mechanizm to navigate the grid, ASP.Net uses
posts - and the browser correctly displays the confirmation message.
If you do not want to use built in paging - you can set
PagerSettings.Visible property to false, and manage paging yourself. If you
want to use posts - you will need to construct the QueryString in such a way
that it contains all the information to re-create the page plus the link
identifier. Then during the page load you will need to re-load the grid and
set it's PageIndex according to the QueryString paging link identifier.
> Hi,
>
[quoted text clipped - 27 lines]
>
> Can any one help me to come out from this problem ?