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
Do you support digital rights management to protect my videos?
What is meant by ispostback in asp net?
What is active web pages?
Define xmlreader class.
What is asp.net and its advantages?
What are the advantages and disadvantages of session?
What is state management react?
Is viewstate enabled by default?
Define a static class?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
What is inproc and outproc?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
Explain the difference between authentication and authorization.
Are xaml file compiled or built on runtime?
What is the difference between a multi-layer and multi-tier applications?