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
Explain the use of errorprovider control in .net?
How can you identify that the page is post back?
What is server side in asp.net?
What is the meaning of TestApi?
Explain asp.net application life cycle?
Describe the method to create a permanent cookie?
Explain Optimization technique description?
What is the adavantage of using ASP.NET routing?
Where are session variables stored?
What is fulltrust?
How do session tokens work?
Define data caching?
What is server infrastructure?
Explain how viewstate is being formed?
What are the ways of preserving data on a Web Form in ASP.NET?