Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



how to add cliet side event to server side? and how to register client script to sever side? wt di..

Answer / 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

how to add cliet side event to server side? and how to register client script to sever side? wt di..

Answer / 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

how to add cliet side event to server side? and how to register client script to sever side? wt di..

Answer / 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

More ASP.NET Interview Questions

In which situation can you not use a viewstate?

0 Answers  


What are the ways of preserving data on a Web Form in ASP.NET?

0 Answers  


How are sessions stored?

0 Answers  


what do you mean software devlopment ?

9 Answers   HCL,


Which namespace is used by ado.net?

0 Answers  


What is the difference between CC and BCC?

0 Answers   MCN Solutions,


my name is sumeetha i am using google gears in .net.what's the problem is my server is in another place. i am working here when i entered the values in textboxes and press enter then it should store in database(sql server) which is in another system.when that sever system is shutdown then the values which i submit should store in my system and after system opened it should automatically store the values in the system can any one plz urgent suggest answer for this question?

2 Answers  


In order to get assembly info which namespace we should import?

0 Answers  


What are skins?

1 Answers  


How to use DevExpress controls

1 Answers  


What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

4 Answers  


whats the best method to cal id in javascript

2 Answers  


Categories