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
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.
Why mvc is better than asp.net? : Asp.Net MVC
Explain the function of new view engine in asp.net? : asp.net mvc
Difference between .NET and previous version?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
Explain the server control events of asp.net ?
What is a page life cycle? What are the events in a page life cycle?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
What are the major built-in objects in ASP.NET?
Write a code for passing ArrayList in Web API?
What are sql joins?
What is the use of session state and application state and difference between them?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
Is there any property names “isnavigating”?
How can we apply themes to an asp.net application?