Hi,
In my ASPNET 2.0 web form WebForm1.aspx, I have a GridView GridView1 and
some other controls in front of the GridView1.
There are CheckBoxes on the GridView1 also.
My question is when I check the 20th row of GridView1's CheckBox, the
WebForm1 will autopostback, and the web page will go to top of the page, I
need to drag the scrollbar down or hit the PageDown so I will go the 20th
row.
That seems not convenient for users.
How do I fix that situation? Thanks for help.
Jason 3 2314
On Jul 12, 12:18 pm, "Jason Huang" <JasonHuang8...@hotmail.comwrote:
Hi,
In my ASPNET 2.0 web form WebForm1.aspx, I have a GridView GridView1 and
some other controls in front of the GridView1.
There are CheckBoxes on the GridView1 also.
My question is when I check the 20th row of GridView1's CheckBox, the
WebForm1 will autopostback, and the web page will go to top of the page, I
need to drag the scrollbar down or hit the PageDown so I will go the 20th
row.
That seems not convenient for users.
How do I fix that situation? Thanks for help.
Jason
Hi Jason......
since you are using asp.net 2.0....
you got a easy way to accomplish the job...
just set your page's
MaintainScrollPositionOnPostback property to true...
<%@ Page Language="C#" AutoEventWireup="true"
Codebehind="Login.aspx.cs" Inherits="KazBitoron.Login"
MasterPageFile="~/Kazbitoron.Master"
MaintainScrollPositionOnPostback="true" %>
Just like this....
Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd. www.kaz.com.bd http://munnacs.110mb.com
Jason Huang wrote:
Hi,
In my ASPNET 2.0 web form WebForm1.aspx, I have a GridView GridView1 and
some other controls in front of the GridView1.
There are CheckBoxes on the GridView1 also.
My question is when I check the 20th row of GridView1's CheckBox, the
WebForm1 will autopostback, and the web page will go to top of the page, I
need to drag the scrollbar down or hit the PageDown so I will go the 20th
row.
That seems not convenient for users.
How do I fix that situation? Thanks for help.
Jason
Read here: http://msdn2.microsoft.com/en-us/lib...on(vs.80).aspx
Regards,
Mykola http://marss.co.ua
On Jul 12, 12:50 pm, marss <marss...@gmail.comwrote:
Jason Huang wrote:
Hi,
In my ASPNET 2.0 web form WebForm1.aspx, I have a GridView GridView1 and
some other controls in front of the GridView1.
There are CheckBoxes on the GridView1 also.
My question is when I check the 20th row of GridView1's CheckBox, the
WebForm1 will autopostback, and the web page will go to top of the page, I
need to drag the scrollbar down or hit the PageDown so I will go the 20th
row.
That seems not convenient for users.
How do I fix that situation? Thanks for help.
Jason
Read here:http://msdn2.microsoft.com/en-us/lib...page.smartnavi...
Regards,
Mykolahttp://marss.co.ua
Hi...
"
Version Information
..NET Framework
Supported in: 1.0, 1.1
Obsolete (compiler warning) in 2.0"
in asp.net 2.0 smartnavigation is obsolete...
maintainscrollpositiononpostback is new in asp.net 2.0 http://msdn2.microsoft.com/en-us/lib...ck(VS.80).aspx
Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd. www.kaz.com.bd http://munnacs.110mb.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Smith jr. |
last post by:
Hello,
Please pardon my newbie question ...
I am building an ASP.NET page that displays a recordset with a Delete
statement enabled (this all works fine). I want to Insert the current
row...
|
by: Giovanni |
last post by:
Dear Friends/Gurus,
I have exhausted myself and have yet no solution to the following:
I have an ASP.NET 2.0 Survey type application. On a page, I have placed
a GridView which is bound to an...
|
by: steve.craver |
last post by:
I am working with a multi-field search form which, when the form is
submitted, queries a database and returns the results into a paginated
GridView object. The site is being developed with master...
|
by: AG |
last post by:
ASP.NET 2.0, VS 2005
I have a gridview with paging enabled, bound to an objectdatasource.
Both were dropped on to the page and configured via the wizards.
Basically working as expected.
The...
|
by: Barry L. Camp |
last post by:
Hi all,
Wondering if someone can help with a nagging problem I am having using
a GridView and an ObjectDataSource. I have a simple situation where I
am trying to delete a row from a table, but...
| |
by: jobs |
last post by:
I have a gridview on another page with a column that will link to this
page. I'm flirting with design options, but am considering a template
field with hyperlink navigateurl that includes a query...
|
by: Jason Huang |
last post by:
Hi,
In my ASPNet 2.0 C# web application Form1.aspx, there are 1 TextBox control
txtBox1, 1 Button control Btn1, and 1 GridView control GV1.
I found whenever I click the Button control Btn1, then...
|
by: Jason Huang |
last post by:
Hi,
In my ASPNET 2.0 C# Web form, I have a funciton BindGridView for binding
SqlDataSourceA to the GridView gvTestForm.
And in the end of the function, I would like to check if there are no rows...
|
by: =?Utf-8?B?UGF1bA==?= |
last post by:
Hi I have a gridview with several template columns and a few command button
columns, column 1 and 2 are dropdown boxes, column 3 is a checkbox and column
4 is a text box, followed by command button...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
| |
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 project—planning, coding, testing,...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |