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 http protocol and how it works?
What is the procedure to create the environment for asp.net? : asp.net mvc
List the advantages and disadvantages of user control an custom control?
What are the different types of validation controls in asp.net?
What is the maximum timeout we can set for Cookies?
Please brief not about xsd,xslt & xml?
What is cache in asp net?
Where is the view state data stored in asp net?
Explain login control and form authentication.
What is asp.net ajax?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
Mention the execution process for managed code?
What is variable and constant in .net programming language?
How many types of sessions in asp.net?
How do u optimize a query in asp.net?