473,407 Members | 2,312 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,407 software developers and data experts.

How to keep focus on control after raising and event ASP.NET

Hi
My web page is bigger then the screen, this causes the following
problem: every time I raise a change event in DropDownList my page is
going back to the TOP which annoy my users.
If any of you know how to keep the page in its current passions I'll be
very grateful
Thanks

Nov 19 '05 #1
5 1242
Hi,

You can use this piece of code in the Page_Load function and see what happens.

this.SmartNavigation = true;

All the best,

I.A

"okaminer" wrote:
Hi
My web page is bigger then the screen, this causes the following
problem: every time I raise a change event in DropDownList my page is
going back to the TOP which annoy my users.
If any of you know how to keep the page in its current passions I'll be
very grateful
Thanks

Nov 19 '05 #2
okaminer wrote:
Hi
My web page is bigger then the screen, this causes the following
problem: every time I raise a change event in DropDownList my page is
going back to the TOP which annoy my users.
If any of you know how to keep the page in its current passions I'll
be very grateful
Thanks


For Internet Explorer, just set SmartNavigation="True" in the Page directive
(on top of your page).

For other browsers, here's an alternative:
http://www.codeproject.com/useritems/lili.asp

--

Riki
Nov 19 '05 #3
Hi okaminer,

When a page is requested by an Internet Explorer 5.5 browser, or later,
smart navigation enhances the user's experience of the page

Set SmartNavigation=True in the page directive of your .aspx

This will solve your problem...
But make sure that the browser is IE 5.5 and above..

Need any help, do post a msg back..
Happy Coding
"okaminer" wrote:
Hi
My web page is bigger then the screen, this causes the following
problem: every time I raise a change event in DropDownList my page is
going back to the TOP which annoy my users.
If any of you know how to keep the page in its current passions I'll be
very grateful
Thanks

Nov 19 '05 #4
Thanks for all the replys this works great

Sorry that I didn't write sooner but I wasn't near a computer

Nov 19 '05 #5
Thanks for all the replys this works great

Sorry that I didn't write sooner but I wasn't near a computer

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: tshad | last post by:
I have a date validation function that I want to stay at the object I am validating if there is a Validation error, but it always goes to the next object. The Javascript: function...
17
by: Neil Ginsberg | last post by:
OK, this is a stupid thing, but I can't seem to get this to work. I have a form with a subform (in continuous form view). A combo box on the main form has code in the AfterUpdate event which adds a...
4
by: thomson | last post by:
Hi all, i do have a user control with 4 buttons, and all the events are firing properly, My problem is that i need to right an event handler in the user control, which gets fired after a...
5
by: Paul Bromley | last post by:
For some time now I have been struggling trying to understand how to handle events originating in a User Control that I have designed when using this in an application. Basically I need to respond...
1
by: clickon | last post by:
For testing purposes i have got a 2 step WizardControl. Eqach step contains a text box, TextBox1 and TextBox2 respectively. If i put the following code in the respective activate event handlers for...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
1
by: Claire | last post by:
I'm writing an application with custom skinned controls. I have a text editor form with a rich edit control. Because there's no toolbuttons in the skinned control set, I have to use normal ones for...
2
by: Jonathan N. Little | last post by:
As part of a JavaScript precheck form validation I noticed a problem with trying to return focus to the field with an error. I have setup a demo page. ...
7
by: Christian Cambier | last post by:
Hi, I have a textbox in a web user control. I then add the usercontrol to a web form. I also add a label in the web form. Now, when I press a key in the textbox, i want to display some text...
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
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
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
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,...
0
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...

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.