Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Grid view with paging error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Loyola stalin - 24 Jul 2007 11:06 GMT
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 ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.