473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

An easy question. AutoPostBack

Hi

I have a small piece of code that uses the AutoPostBack feature along side an OnSelectedIndexChanged. When a person clicks a radio button, the page sends the response and then 'does something (depending on what was selected)' - This works fine

However, every time one of these buttons is clicked, the view goes to the top of the page and the user then has to scroll back down to where they were. Is there a way around this? I have tried to use...

<configuration>
<system.web>
<pages smartNavigation="true"/>
</system.web>
</configuration>

...in the web.config file but this doesn't seem to work.

Thank you

Dave
Feb 26 '08 #1
1 828
write function in javascript
set ur webform according to ur choice with the help of x & y co-ordinates


function ResetScroll()

{

window.scrollTo(0,0);

}

Regards,
Nitya
Feb 26 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Matthew Louden | last post by:
why need to set autopostback property to be true?? I know autopostback event means to send the form to the server automatically. I tried checkbox, checkbox list, radio button, and radio button...
9
by: Shreyash Patel | last post by:
How do I make PostBack Call from the Server so that I can update something on the client web browser? The Client just has the page open theres is no event from the Client. But I want to push...
1
by: MSNEWS | last post by:
Hi I have a datagrid with 8 Columns, columns called Monday - Sunday, and a column called TOTAL. The Monday - Sunday columns are template columns with a textbox inside. The TOTAL column is a...
6
by: jiangyh | last post by:
hi there: I have a datagrid in my web form that contain a templet column.And in this templet column have a checkbox web control.I will get the checkbox state in my serverside. My question is...
4
by: Patrick.O.Ige | last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected after doing a postBack. I have set my CheckBoxlist AutoPostBack="True" Any ideas what 'm doing wrong? It seems not to...
2
by: rn5a | last post by:
Assume that a user control has a TextBox (Page1.ascx) <asp:TextBox ID="txtName" runat="server"/> I am encapsulating the above user control in a ASPX page named Page1.aspx i.e. the ASPX page...
4
by: =?Utf-8?B?UmVuYXVkIExhbmdpcw==?= | last post by:
Hello, I have a strange yet very simple problem with the asp.net Textbox web control. On an empty asp.net page, add a single asp:TextBox control with Autopostback=false with nothing else on...
1
by: Ben | last post by:
Hi, There are two radiobuttonlists created and fed dynamically. Both has AutoPostBack=True. When an option of a radiobuttonlist is checked, its ID and its selectedvalue must appear on screen...
4
by: tshad | last post by:
I am just getting started with events and had a couple of questions on why they do what they do. If you have a textbox and you want to handle an event you can just do: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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 project—planning, coding, testing,...

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.