473,545 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2604
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.V isible 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2370
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that field... This grid displayes results based on users search.. public static int numberDiv; private void Page_Load(object sender, System.EventArgs e) {
3
1854
by: Andrew Banks | last post by:
I've added a data grid to my page but the automatic paging feature doesn't seem to be working. The code I have on page load is as follows. Can anyone suggest why this isn't working? SqlDataAdapter adSales; SqlConnection con = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings.Get("Co nnectionString"));
2
1318
by: Joe Au | last post by:
I enable paging on a data grid. But when I click on the page number, nothing happen. Do I have to code something to handle it? Thanks.
4
3267
by: blackhawk | last post by:
I need to build a web page that has to potentially display a large amount of data in two grids on the same page. The HTML file with all of the formatting is about 7MB in size. This is too large and I need to implement some kind of "client side" lazy loading. What I mean is this: I want to display a grid that only shows, say, 20 records....
1
2741
by: puja | last post by:
hi all, am using grid view in asp.net 2.0 . My problem is easy but can't get it to work. My grid view id = grdContract and am binding grid view using dataset My dataset returns 5 columns from sql database and I have auto generate columns = true for grdContract grdContract.DataSource = ........dataset returned by a function
3
1579
by: Logu Krishnan | last post by:
in short, the question is "How do i do custom paging in my asp.net grids" in SQL 2000. if i use default paging and if my db has ~200000 records, then i have to select all the 2 lac records then bind to the grid. whereas i've to show only 50 rows... so if i do custom paging i can implement this in sql2005 using row_number, but how would i...
0
924
by: kal | last post by:
I have a gridview on my page - the 'onSelIndexChan' of which is wired to a ajax update panel - via triggers. this works fine but the grids paging wont work - or rather it fires a post back but the next page isnt displayed. and then when i click the page link again it gives an invalid argument error. There is no code in the event handlers
2
2779
by: jaredciagar | last post by:
Hi Guys, Please Help ME.... I have a problem in displaying data in my gridview with paging, the data from the database is displaying to my gridview but I want to allow paging in my gridview.how can I do that? I got an error msg that datareader does not allow paging in gridview.... because I use datareader in binding my data. How can I convert...
1
1776
by: avinashtp | last post by:
my dataset have 3 records. allow paging is enabled in my gridview. page size is 10 but three records. i want to show page numbers with that grid view
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.