Click here to Skip to main content
11,411,128 members (66,511 online)
Click here to Skip to main content

Crossbrowser SmartNavigation Alternative II

, 3 Apr 2005
Rate this:
Please Sign up or sign in to vote.
An article describing how to create a server control that preserves the scroll position in longer pages.


In my previous article, I have introduced Crossbrowser SmartNavigation Alternative. However, this doesn't support link buttons, because the link buttons either does not submit the form or does not fire an event. Instead of getting the scroll positions in the onsubmit event, getting them in the onscroll event is better. But other browsers badly supports the onscroll event. This event is fired when mouse moves the scroll in other browsers. So I get the scroll positions using onscroll, onkeypress and onclick events in other browsers.

I have tested this on Internet Explorer 6.0, FireFox 1.0 and Netcape 7.2.

Adding this control to your page

Insert this code to the head of your page.

<%@ Register TagPrefix="cc1" Namespace="Uludag" Assembly="lili2" %>

And insert this code into your form.

<cc1:Lili2 id="Lili1" runat="server"/>

Or, you can follow the instructions in my previous article.

I hope this helps somebody out there, I would be interested in receiving any comments.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Turkey Turkey
Ibrahim ULUDAG
Software Developer

Comments and Discussions

GeneralThanks for sharing this. PinmemberThanh H. Pham10-May-09 13:41 
GeneralIMPORTANT: Fix for Firefox, IE7, etc. when using doctype PinmemberCabbageMonster26-Mar-09 10:25 
GeneralThanks for the great share. Pinmembermcrabben719-Apr-07 13:08 
QuestionDoesn't works under IE7. Pinmembermarcin.rawicki12-Mar-07 5:46 
GeneralDoesn't Work under XHTML DOCTYPE Pinmembergtownsend200715-Jan-07 12:46 
GeneralDifferent Use PinmemberBobsAfro14-Jan-07 23:39 
GeneralThank you PinmemberFarhan Noor Qureshi16-Oct-06 13:12 
GeneralWorks perfectly, thanks a million! Pinmemberzangad19-Jul-06 7:05 
QuestionLink for Lili3 not working? PinmemberMads Christensen29-Jun-06 4:54 
GeneralTHANKS Pinmembertavo_14-May-06 7:28 
GeneralLili3 Enabled Pinmemberraoulguenette1-Feb-06 12:41 
GeneralRe: Lili3 Enabled Pinmemberibrahimuludag28-Apr-06 13:01 
GeneralDoesn't work with auto refresh PinmemberBaelzharon25-Jan-06 7:01 
GeneralRe: Doesn't work with auto refresh Pinmemberibrahimuludag28-Apr-06 13:03 
GeneralExcelente PinmemberAlejoFC25-Jan-06 6:06 
Generalfirefox support Pinmemberfrankkkkk4-Oct-05 6:54 
GeneralRe: firefox support [modified] PinmemberCabbageMonster26-Mar-09 8:40 
QuestionDisable for pagers? PinmemberDonzella6-Sep-05 7:45 
AnswerRe: Disable for pagers? Pinmemberibrahimuludag6-Sep-05 8:38 
GeneralRe: Disable for pagers? PinmemberDonzella6-Sep-05 9:03 
GeneralRe: Disable for pagers? PinsussAnonymous6-Sep-05 13:11 
GeneralRe: Disable for pagers? PinmemberDonzella6-Sep-05 13:21 
Generaldoesnt work with doctype PinmemberDroneX527-Jul-05 5:01 
GeneralRe: doesnt work with doctype PinmemberGreekShowPony29-May-06 6:36 
GeneralRe: doesnt work with doctype PinmemberCabbageMonster26-Mar-09 10:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150414.5 | Last Updated 3 Apr 2005
Article Copyright 2005 by ibrahimuludag
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid