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
What is ascx?
What are httphandlers and httpmodules and difference between them?
How can we apply themes to an asp.net application?
What is cache in asp net?
Where do the cookie state and session state information be stored?
Explain the benefits of viewstate?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
Can I tap into other windows livetm services?
What is different authentication mechanisms used in ASP.NET?
What are the two types of web pages?
can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?
WSDL means?
What is asp short for?
What are the new data controls in asp.net 2.0?
What is the page life cycle in asp.net?