By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,025 Members | 2,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,025 IT Pros & Developers. It's quick & easy.

Grid view with paging error

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.