RegisterClientScriptBlock in C#

Posted by Anu_dgr8 under C# on 9/24/2010 | Points: 10 | Views : 3204 | Status : [Member] | Replies : 3
Can anyone tell me what is RegisterClientScriptBlock with a good example?

Thanks and Regards,
Hoosha Boosha



Responses

Posted by: T.saravanan on: 9/24/2010 [Member] [MVP] Silver | Points: 25
Posted by: Anu_dgr8 on: 9/28/2010 [Member] Starter | Points: 25

Up
0
Down
Why do we need to register a client side javascript block with a key?

Thanks and Regards,
Hoosha Boosha

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prasham on: 9/30/2010 [Member] Starter | Points: 25

Up
0
Down
Hello,

RegisterClientScriptBlock emits the script on the page.

There are some scenarios like, some data we need to populate by calling sever side method in page_load and then this data we want to used in any javascript method which is called on any event from the page.

Thanks and Best Regards
Prasham

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response