how to add cliet side event to server side?
and
how to register client script to sever side? wt difference
these two

Answer Posted / jagadish

string popupScript = "<script language='javascript'>" +
"window.open'PopUp.aspx', 'CustomPopUp', " +"'width=200,
height=200, menubar=yes, resizable=no')" +"</script>";

Page.RegisterStartupScript("PopupScript", popupScript);

OR

Page.RegisterStartupScript(me.gettype(),"somename","<script
language=javascript>somefunction()</script");

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cookies cache and session?

716


What is form method?

690


Explain how to prepare culture-specific formatting in .net.

713


Why is an object pool required?

809


What are Master Pages in ASP.NET?

772


How would you implement inheritance using c#?

767


What is different in .net 1.1 and .net 2.0?

768


How does session work in asp net?

759


What is difference between cache and session?

690


Contrast OOP and SOA. What are tenets of each ?

1944


How you will manage the state of ASP.NET controls?

762


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

1813


What is postback and autopostback in asp.net?

748


What are the merits and demerits of viewstate?

779


What is the significance of ASP.NET routing?

833