Click here to Skip to main content
15,887,436 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Calendar control & Dropdownlist box Pin
Imran Khan Pathan17-Jun-08 0:45
Imran Khan Pathan17-Jun-08 0:45 
GeneralRe: Calendar control & Dropdownlist box Pin
Member 387988117-Jun-08 1:16
Member 387988117-Jun-08 1:16 
GeneralRe: Calendar control & Dropdownlist box Pin
Imran Khan Pathan17-Jun-08 1:25
Imran Khan Pathan17-Jun-08 1:25 
GeneralRe: Calendar control & Dropdownlist box Pin
Member 387988117-Jun-08 1:42
Member 387988117-Jun-08 1:42 
GeneralRe: Calendar control & Dropdownlist box Pin
Imran Khan Pathan17-Jun-08 1:51
Imran Khan Pathan17-Jun-08 1:51 
GeneralRe: Calendar control & Dropdownlist box Pin
Member 387988117-Jun-08 2:02
Member 387988117-Jun-08 2:02 
Questionmaintaning scroll bar positions while refreshing page in asp.net 2.0 Pin
vijaylumar17-Jun-08 0:31
vijaylumar17-Jun-08 0:31 
AnswerRe: maintaning scroll bar positions while refreshing page in asp.net 2.0 Pin
SomeGuyThatIsMe17-Jun-08 0:37
SomeGuyThatIsMe17-Jun-08 0:37 
I use the following to do it __SCROLLOC is a hidden field in the form, i use this with Register script tags in .net 1.1 it should work if you wire it up correctly in the aspx. there is also a property in .net 3.5 (possibly in 2, but we skipped from 1.1 to 3.5) Page.MaintainScrollPositionOnPostBack, and Page.SmartNavigation do simliar things, except smart navigation has issues with datagrids in 1.1 hope this helps

  string setScroll = "<script language="javascript"> " + 
                    "function SetScrollLocation() { " +
                    "document.body.scrollTop = " + __SCROLLLOC.Value + ";}" +
                    "document.body.onload=SetScrollLocation;"+
                    "</script>";

                ClientScript.RegisterStartupScript (this.GetType (), "setScroll", setScroll);
            }

            //save scroll position code
            string saveScroll = "<script language="javascript"> " +
                "function SaveScrollLocation() { " +
                "document.forms[0].__SCROLLLOC.value = document.body.scrollTop;} "+
                "document.body.onscroll=SaveScrollLocation;" +
                "<script>";
</script></script>


Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

Questionopening in a new page or window in asp.net 2.0 Pin
vijaylumar17-Jun-08 0:19
vijaylumar17-Jun-08 0:19 
AnswerRe: opening in a new page or window in asp.net 2.0 Pin
SomeGuyThatIsMe17-Jun-08 0:32
SomeGuyThatIsMe17-Jun-08 0:32 
AnswerRe: opening in a new page or window in asp.net 2.0 Pin
Gayani Devapriya17-Jun-08 0:49
Gayani Devapriya17-Jun-08 0:49 
Question[Message Deleted] Pin
Member 343561417-Jun-08 0:16
Member 343561417-Jun-08 0:16 
AnswerRe: How to get simillar pattern color from images Pin
SomeGuyThatIsMe17-Jun-08 0:27
SomeGuyThatIsMe17-Jun-08 0:27 
Questionenableeventvalidation Pin
si_6917-Jun-08 0:06
si_6917-Jun-08 0:06 
Questionenableeventvalidation Pin
si_6917-Jun-08 0:05
si_6917-Jun-08 0:05 
QuestionHow to use masterpage in aspx file Pin
BalasubramanianK17-Jun-08 0:01
BalasubramanianK17-Jun-08 0:01 
AnswerRe: How to use masterpage in aspx file Pin
Gayani Devapriya17-Jun-08 0:28
Gayani Devapriya17-Jun-08 0:28 
GeneralRe: How to use masterpage in aspx file Pin
BalasubramanianK17-Jun-08 1:07
BalasubramanianK17-Jun-08 1:07 
QuestionXlsx file in Asp.net Pin
Krazy Programmer16-Jun-08 23:59
Krazy Programmer16-Jun-08 23:59 
AnswerRe: Xlsx file in Asp.net Pin
Sam Xavier17-Jun-08 4:45
Sam Xavier17-Jun-08 4:45 
QuestionServer unavaliable error from IIS Pin
koolprasad200316-Jun-08 23:55
professionalkoolprasad200316-Jun-08 23:55 
AnswerRe: Server unavaliable error from IIS Pin
Sam Xavier17-Jun-08 4:47
Sam Xavier17-Jun-08 4:47 
Questioncompare colors Pin
Member 343561416-Jun-08 23:47
Member 343561416-Jun-08 23:47 
AnswerRe: compare colors Pin
Imran Khan Pathan16-Jun-08 23:52
Imran Khan Pathan16-Jun-08 23:52 
GeneralRe: compare colors Pin
Member 343561417-Jun-08 0:20
Member 343561417-Jun-08 0:20 

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

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