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 the latest version of asp.net?
Why session is used in asp.net?
What role “#&&” plays in a querysting?
Can we create a multiple user simultaneously ?
What does session_start () do?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?
How does a content page different from a master page?
What is %20 in a url?
What does mean by a neutral culture?
Is there any limit for query string? Means what is the maximum size?
Why we use content place holder in asp.net?
What are the merits and demerits of viewstate?
What are cookies in asp.net?
What is application state?