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

New Message on BDOTNET

-----------------------------------------------------------
From: s_hashim
Message 4 in Discussion





Try 
like this 

i 
tried putting this code in Page Load i could able to set focus on 
TexBox1

RegisterStartupScript("SetFocus", 
"<script language=""Jscript"" > 
document.getElementById(""Textbox1"").focus(); 
</Script>")
another way is as fallows
write this javascript function in .aspx 
code
  <script 
language="javascript">
   //Fucnction for Setting focus on 
UserName TextBox
   function 
setFocusTextBox()
   {
   var control = 
document.getElementById("txtUsername");
   if( control != null 
){control.focus();}
   }
  </script>

cal 
the same script in 
<body 
onload="setFocusTextBox()">
 
HTH
 
the above given code are working fine 
in ASP.NET with VB.net
 language=javascript>
                        //Fucnction for Setting focus on UserName TextBox
                        function setFocusTextBox()
                        {
                        var control = document.getElementById("txtUsername");
                        if( control != null ){control.focus();}
                        }
                </SCRIPT>

 language=javascript>
                        //Fucnction for Setting focus on UserName TextBox
                        function setFocusTextBox()
                        {
                        var control = document.getElementById("txtUsername");
                        if( control != null ){control.focus();}
                        }
                </SCRIPT>


********* 
 

********** 
Keep Smiling, 
Regards. 


Sayad Hashim Ali 
Kazi
Microsoft India Community Star. 

SQL Star International Ltd.
SQL 
House, #13,Infocity,Madhapur,
Hyderabad 500 081.
Tel: +91-40-2310 
1625(Off)
www.mugh.net 

-----Original Message-----
From: Chintan 
[mailto:[EMAIL PROTECTED]
Sent: Friday, April 16, 2004 12:08 
PM
To: BDOTNET
Subject: Re: Problems with Debugging the web 
Application.



  
  
    
    New Message on BDOTNET
  
    

Problems 
  with Debugging the web Application.


  
    
    
      Reply

      
        
          
          
             
            Reply to Sender   Recommend 
            Message 3 in Discussion 
            
    
      
        
          
          
            From: Chintan 
          
            

              hai saravan
              this regarding the problem with code 
              snippets got from ur site 
              Page.RegisterStartupScript("SetFocus", 
              "<script language=""Jscript"" > 
              document.getElementById(""Textbox1"").focus(); 
              </Script>")
              to run the above code in 
              VB.NET application what should be the initial parameters like is 
              there any namespace to be imported? is there any page level 
              parametrs to be set up 
              bcoz i am not getting the 
              method RegisterstartupScript exposed...when using 
              inttelisense..but the same thing is getting exposed when i use the 
              C# project why so ??? can u give me the 
              soultion
              thanking 
              you
              nagaraj
              
                ----- Original Message ----- 
                From: Saravana 
                To: BDOTNET 
                
                Sent: Friday, April 16, 2004 9:38 AM
                Subject: Re: Problems with Debugging the web 
                Application.
                

                
                  
                  
                    
                    New Message on BDOTNET
                  
                    

                Problems with 
                  Debugging the web Application.


                  
                    
                    
                      Reply

                      
                        
                          
                          
                             
                            Reply to Sender 
                                Recommend 
                            Message 2 in 
                              Discussion 
                    
                      
                        
                          
                          
                            From: 
                              Saravana 
                          
                            

                              Hi,
                               
                              Check out this faq,
                              
http://www.extremeexperts.com/Net/FAQ/DebuggingProbleminASPNET.aspx
                               
                              This might help you.
                               
                               
                              -Saravana
                              www.extremeexperts.com
View 
                  other groups in this category. 
                


View other groups in this 
  category. 



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

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