how to add cliet side event to server side?
and
how to register client script to sever side? wt difference
these two
Answer Posted / raju
we can register client script in serverside also....if u
want to make it in serverside use this code...
ClientScript.RegisterStartupScript(Me.GetType
(), "script", "<script language=""javascript"">function1()
</script>")
(or)
Me.Page.RegisterClientScriptBlock("close", "<script
language=javascript>javascriptcode......</script>")
I think there is no difference b/n those two....depending
upon the situatio we can use any of these....
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I upload a file from my ASP.NET page?
What are cookies in your browser?
Explain the difference between server control and html control.
Explain why datareader is useful?
What is the difference between equals() and == in c#?
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
How to implement form based authentication in asp.net application?
Describe the method to create a permanent cookie?
Explain the features that make asp.net more used framework? : asp.net mvc
What is the use of HttpHandlers? When to use this?
Explain http handlers? Where we can use the http handlers?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is the life cycle of an asp.net page?
Why is global asax is used for?
How do you design a website with multilingual support in ASP.NET ?