468,285 Members | 1,589 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,285 developers. It's quick & easy.

Grid view with paging error

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 ?
Jul 24 '07 #1
1 2452
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.
"Loyola stalin" wrote:
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 ?
Jul 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by pmud | last post: by
3 posts views Thread by Andrew Banks | last post: by
2 posts views Thread by Joe Au | last post: by
4 posts views Thread by blackhawk | last post: by
1 post views Thread by puja | last post: by
3 posts views Thread by Logu Krishnan | last post: by
reply views Thread by kal | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.