how to add cliet side event to server side?
and
how to register client script to sever side? wt difference
these two
Answer Posted / yogesh sharma
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 ? | 2 Yes | 0 No |
Post New Answer View All Answers
calling result set one procedure to anothar procedure in sql2000
What does the hotspot class in .net do?
Why do we need asp.net?
How would you create a permanent cookie?
How many languages are supported by .NET at present time?
What's the difference between viewstate and sessionstate?
How is my content secured from unauthorized access?
How you can manage the state of application at the server side in ASP.NET?
Fetch one page value to another page without using state-managment ?
What is asp.net and how it works?
Is asp.net different from asp? If yes, explain how?
How does ASP.NET framework maps client side events to Server side events.?
What are the advantages of asp.net mvc framework? : asp.net mvc
What is connection pooling and how to enable and disable connection pooling?
Why asp.net is used?