-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: gnanasekaran
Message 1 in Discussion

 Hi Friends,   I have a Registration.aspx, which has 20 controls in it in the 
combination of TextBox and DropDownList. Almost all the controls are set to 
AutoPostBack = true, if the page gets posted back, the cursor location moves back to 
Address Bar of the browser. Which makes the user to scroll the page each time to 
scroll back to the control in which the user was working with, which is quite 
irritating.   I have set the SmartNavigation property of the Page to True, then also 
the problem persists.   I have even wrote a JavaScript like:
<body id="Body" runat="server" onscroll="bodyscroll()" bottomMargin="0" leftMargin="0">
  <SCRIPT language="JavaScript">
    <!-- function bodyscroll() {
           var F=document.forms[0];
           F.ScrollTop.value=Body.scrollTop;
         }
         //-->
    </SCRIPT>
</body> And added the following code in the codebehind:
 
protected System.Web.UI.HtmlControls.HtmlContainerControl Body;
protected System.Web.UI.HtmlControls.HtmlInputHidden ScrollTop;
if (ScrollTop.Value != "")
{
Body.Attributes.Add("onload", "javascript:Body.scrollTop=" + ScrollTop.Value + ";"); 
} Please tell me how to solve this.   thanks, Gnanasekaran

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to