Design and CSS styles
Version 6.x > Design and CSS styles > where is the scriptmanager control in masterpage? View modes: 
User avatar
Member
Member
steven4733-gmail - 12/22/2011 11:46:44 AM
   
where is the scriptmanager control in masterpage?
Hi,

I developed a user control which using .net ajax framework. In the control I added a UpdateProgress control to display status between clicking button and get response from server. It works fine in a content page, but if I added this user control in masterpage, the UpdateProgress control part always shows. I believe that's because the scriptmanager control placed in a position that after this web part. Where can I find the scriptmanager(I think it is called manscript in Kentico) and put it in front of the web part?

User avatar
Member
Member
kentico_michal - 12/27/2011 1:54:56 AM
   
RE:where is the scriptmanager control in masterpage?
Hello,

The ToolkitScriptManager control is added directly in the PortalTemplate page. You can see it in the ~/CMSPages/PortalTemplate.aspx file.

Best regards,
Michal Legen

User avatar
Member
Member
steven4733-gmail - 12/27/2011 11:45:09 AM
   
RE:where is the scriptmanager control in masterpage?
I review the page, found that the ToolkitScriptManager is already placed before asp:PlaceHolder. Then why the UpdateProgress web part still show in the masterpage after page loaded, but works fine in a content page? It shouldn't show untill the postback event is triggered. Any idea?

User avatar
Member
Member
kentico_michal - 1/6/2012 1:15:36 AM
   
RE:where is the scriptmanager control in masterpage?
Hello,

As this is your custom web part I can only guess what might be causing this issue. If this user control works correctly outside of Kentico CMS you could try to use the User control web part to insert your custom user control (ASCX file) onto the pages of your website.

Best regards,
Michal Legen

User avatar
Member
Member
steven4733-gmail - 1/9/2012 8:37:43 AM
   
RE:where is the scriptmanager control in masterpage?
I'm not quite sure your meaning. The user control works fine on a content page not in a masterpage of kentico. What do you mean to use the user control web part to insert my custom user control?

User avatar
Member
Member
kentico_michal - 1/22/2012 5:16:10 AM
   
RE:where is the scriptmanager control in masterpage?
Hello,

I was reffering to the User control web part that allows you to insert any user control (ASCX file) onto the pages of your website: User Control overview.

Have you tried to use it? If it does not help, could you please try to post here the code of this custom control?

Best regards,
Michal Legen

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 1/27/2012 3:45:50 PM
   
RE:where is the scriptmanager control in masterpage?
It doesn't matter where the scriptmanager control is placed in the control tree of a .net page. It doesn't render anything in its place, it just places the javascript you register with it in either the <head> tag or at the bottom of the page. Do you understand what I mean?

It's more or less just a way for you to declaratively configure the scripts that will be rendered where they are supposed to be rendered on the page. It could even be the very last thing you have in your masterpage markup and everything should still work fine.

That being said, I believe that you need to look elsewhere for the cause of your update panel problem.