Welcome to Dream.In.Code
Become an Expert!

Join 150,072 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,770 people online right now. Registration is fast and FREE... Join Now!




Using ScriptManagerProxy in UserControl

 
Reply to this topicStart new topic

Using ScriptManagerProxy in UserControl

itsnasir
3 Mar, 2008 - 11:52 PM
Post #1

New D.I.C Head
*

Joined: 3 Mar, 2008
Posts: 1

Hi

On my MasterPage I've a ScriptManager and one ContentPlaceHolder, My Webpage contains three UserControls and each UserControl uses UpdatePanel... now i want to call JavaScript alert() Method Using ScriptManagerProxy... um using the following Code...



csharp

ScriptManagerProxy1.Page.ClientScript.RegisterClientScript(this.GetType(),"ReturnScript","alert('Method Called');",true);


but nothing happens...

and if i try to use

csharp

ScriptManagerProxy1.Page.ClientScript.RegisterStartupScript(this.GetType(), "ReturnScript", "alert('Method Called');", true);


it work only in Page_Load event and doesn't work if i want to use it in any event or method

can any one help me in this case

Thanks

Nasir Ibrahim

This post has been edited by PsychoCoder: 4 Mar, 2008 - 06:01 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:07PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month