Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Focus IE versus Netscape

Status
Not open for further replies.

SixSided

Programmer
Dec 1, 2003
2
US
We are using Datalist in several of our webpages.
When we select an Item for Edit we are setting the focus using javascript to a button inside of the Datalist EditTemplate to keep the page displaying the Edit template.
This works in IE, but it does not work in Netscape. The focus is there, but the page always returns to the top of the page after a postback.

Does anybody have any suggestions?
 
Enable SmartNavigation on the page:
Code:
<%@ Page language=&quot;c#&quot; Codebehind=&quot;WebForm1.aspx.cs&quot; AutoEventWireup=&quot;false&quot; Inherits=&quot;MyProject.WebForm1&quot; SmartNavigation=&quot;true&quot; %>
Supported by IE 5.5+, one of the features is &quot;persisting element focus between navigations&quot;, that's what you need. Make sure you have aspnet_client directoty in the root of your web site.
 
We have smart navigation enabled.
It is working with IE.
Our problem is with Netscape, Mozilla, and Opera.
We loose our focus when using not using IE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top