ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Can we use the java script code in .Net Code behind?
 Question Submitted By :: Sharfuddin
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can we use the java script code in .Net Code behind?
Answer
# 1
yes we can use javascript in code behind.


 Define the script block that contains the JavaScript
function. You can add this directly to the HTML of the page.


  Insert the script block by  the
Page.RegisterStartupScript() or the
Page.RegisterClientScriptBlock() method. 

or by using updatepanel by raising an async postback using
JavaScript code
 
Is This Answer Correct ?    6 Yes 0 No
Zikku
 
  Re: Can we use the java script code in .Net Code behind?
Answer
# 2
I have made use of scripts in code behind.  My client 
wanted cursor to move from one web ui control to another in 
a specific order based on the data fed/selected by user.  
For eg. after entering specific word in a textbox, cursor 
has to focus on save button bypassing all other ui 
controls; if another specific word is entered focus should 
jump on third ui control skipping the second, so on and so 
forth.

User got delighted when the facility was given.

Another case where I implemented was to focus to next 
control even after a post back event (otherwise smart 
navigation returns focus to the same control after a post 
back and use has to press tab key again to set focus to 
next ui control).  

This facility made my clients again happy.

Of course, it is more worthy to earn clients delight than 
weighty pay packet!!!

Ofcourse, I used Page.RegisterStartupScript() and the
Page.RegisterClientScriptBlock() methods!
 
Is This Answer Correct ?    1 Yes 0 No
Satish V Itagi
 
 
 
  Re: Can we use the java script code in .Net Code behind?
Answer
# 3
yes we can use java script code.
 
Is This Answer Correct ?    1 Yes 0 No
Mupnesh
 
  Re: Can we use the java script code in .Net Code behind?
Answer
# 4
yes
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Briefly describe different techniques for ASP.NET State Management? Syntax-Softtech2
Should validation (did the user enter a real date) occur server-side or client-side? Why?  2
Difference between asp and asp.net ? Accenture3
When Garbage Collector will run and how its identifing whether the Object is used or Not.? Verizon2
what are the differences between windows services and web services? Tech-Mahindra3
what is diffrance between response.write & response.output.write CTS4
How we can kill our Session in web farm where there is no any sticky server .And user can not Logout bcoz of that.  1
In cache where dats is stored and how(file or object?)  2
In a webpage if i want to give access to only half page ,then what should i do?  3
Why Global.asax is used? Perot-Systems6
how to update data using store procedure  1
In try catch blocks one is normal catch block and another is sqlcatchexception block Microsoft3
What is the lifespan for items stored in ViewState? ISST2
Does the following statement executes successfully: Response.Write(?value of i = ? + i); TCS4
How do you turn off cookies for one page in your site? IBS2
How many rules are there regarding a well formed XML document? a) Nine b) Three c) Six d) Two Syntax-Softtech1
why many web.config files are used in are project  2
“~” means in asp.net application? IBS3
What are generics? why it is used? architecture of ASP.NET? Satyam4
Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process Visual-Soft1
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com