Sponsors

News

Jobping Laurent Kempé MVP JetBrains Academy Member Certified ScrumMaster

Contact

My status

View Laurent Kempé's profile on LinkedIn
XING
twitter
facebook


Xbox 360



Map

Locations of visitors to this page

.NET Dudes

Family

French .NET Dudes

Friends

Jobping

Links

Tech Head Brothers

RegisterClientScriptInclude and scripts ordering

I spend a part of this evening fighting with ScriptManager.RegisterClientScriptInclude and had no chance to use it in a way that my javascripts would appear after MicrosoftAjax.js and in an order that I defined.

I finally found a solution, using ScriptManagerProxy and declaratively listing the javascripts in the order I wanted.

Posted: May 25 2007, 01:04 AM by lkempe | with 1 comment(s)
Filed under:

Comments

Nasir Ibrahim said:

Hi

On my MasterPage I've ScriptManager and only one ContentPlaceHolder, on my Web Page there are 3 UserControls and each UserControl uses UpdatePanel now I want to call a JavaScript Method e.g., alert(); from my UserControls... I've tried to use ScriptManagerProxy1.Page.ClientScript.RegisterClientScriptBlock(this.GetType,"ReturnScript","alert('JavaScript Method called');",true);

but its not working....

and when i try to use

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

it only works in page_Load event

plzz help me in this case

Thanks

Nasir Ibrahim

# March 4, 2008 1:29 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)