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


Please Help Members By Posting Answers For Below Questions

Define a static class?

711


Is asp.net and .net same?

722


How do I open an ashx file?

748


Why do we use sessions?

766


Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

722


Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?

771


Which method is used to enforce garbage collection in .net?

615


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

690


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

745


Which .NET framework supports Web API?

775


What asp.net control can embed xaml into asp.net pages?

739


Explain how cookies work.

788


What are session state modes?

746


What is work flow gen? how can it will work with .Net?

2752


What is the adavantage of using ASP.NET routing?

864