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

O

okaminer

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
 
G

Guest

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
 
R

Riki

okaminer said:
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
 
G

Guest

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
 
O

okaminer

Thanks for all the replys this works great

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top