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                      
tip   To Refer this Site to Your Friends   Click Here
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
how to add cliet side event to server side?
and
how to register client script to sever side? wt difference 
these two
 Question Submitted By :: Venkat
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to add cliet side event to server side? and how to register client script to sever side? wt difference these two
Answer
# 1
we can register client script in serverside also....if u 
want to  make it in serverside use this code...

ClientScript.RegisterStartupScript(Me.GetType
(), "script", "<script language=""javascript"">function1()
</script>")

(or)

Me.Page.RegisterClientScriptBlock("close", "<script 
language=javascript>javascriptcode......</script>")

I think there is no difference b/n those two....depending 
upon the situatio we can use any of these....
 
Is This Answer Correct ?    0 Yes 0 No
Raju
 
  Re: how to add cliet side event to server side? and how to register client script to sever side? wt difference these two
Answer
# 2
ClientScript.RegisterStartupScript(Me.GetType
(), "script", "<script language=""javascript"">function1(){}
</script>")

and 

ClientScript.RegisterClientScriptBlock(Me.GetType
(),"script","<script language='javascript'>function1(){}
</script>

above two methods use to add client side event to server 
side.

Difference between above two is that 

ClientScript.RegisterStartupScript will insert script 
before closing </form> tag.

and 

ClientScript.RegisterClientScriptBlock will insert script 
after form start tag <form runat=server > of the page.
 
Is This Answer Correct ?    1 Yes 0 No
Yogesh Sharma
 
 
 
  Re: how to add cliet side event to server side? and how to register client script to sever side? wt difference these two
Answer
# 3
string popupScript = "<script language='javascript'>" +
"window.open'PopUp.aspx', 'CustomPopUp', " +"'width=200, 
height=200, menubar=yes, resizable=no')" +"</script>";

 Page.RegisterStartupScript("PopupScript", popupScript);

                       OR

Page.RegisterStartupScript(me.gettype(),"somename","<script 
language=javascript>somefunction()</script");
 
Is This Answer Correct ?    0 Yes 0 No
Jagadish
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Types of optimization and name a few and how do u do? Accenture1
What is pre-init event in ASP.NET 2.0 page life cycle? Fulcrum-Logic1
can machine.config file orverrides web.config. For example: if u set session timeout as 30 mins in web.config file to a particular application and if u set session timeout as 10 mins in machin.config. what will happen and which session is set to the appliction? SunGard2
what is value type to reference type AG-Technologies6
Webconfig file is cofiguration of server or browser? Wipro9
my name is sumeetha i am using google gears in .net.what's the problem is my server is in another place. i am working here when i entered the values in textboxes and press enter then it should store in database(sql server) which is in another system.when that sever system is shutdown then the values which i submit should store in my system and after system opened it should automatically store the values in the system can any one plz urgent suggest answer for this question?  2
What is the difference between ExecuteReader,ExecuteNonQuery and ExecuteScalar.  3
Your manager has asked you to describe what you would use application variables for. What statement best describes the use of application variables? a) Application Variables are used to keep state for each connected user. b) Application Variables are used to keep state for the web site c) Application Variables are used to keep state for the application on the server d) Application Variables are used to keep state for all applications objects in the web site. Syntax-Softtech1
What is personalization? What are the properties available in personalization?  1
how to use html code in asp source code?  1
What is the Global ASA(X) File?  2
What is meant by role based security? when we use this one  1
What is the result when the Web Form containing the following line is complied and executed? <asp:Button id=?thebutton? onClick=?theEvent? /> a) The button control is created; theEvent is the click event handler. b) Compiler error; the control must be set to runat=?server?. c) Compiler error; onClick is not a valid attribute. d) Runtime Exception; the control must be set to runat=?server?. Syntax-Softtech2
How many types of validation controls are provided by ASP.NET?  4
What is the need to give <compilation debug=true> command ? Netsweeper3
What r all the controls in ASP.NET ?  3
How do you pass session values from one page to another ? Digital-GlobalSoft2
How do you create a permanent cookie?  4
is it possible to persiste customize object in view state? how it is?  2
Difference between Response.Expires and Expires.Absolute ? Accenture1
 
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