Connecting Tech Pros Worldwide Forums | Help | Site Map

MasterPage and Ajax ScriptManager

Ryan Liu
Guest
 
Posts: n/a
#1: Jun 27 '08
Hi,

Since ScriptManager need inside a server form, and web content page using
MasterPage can not have another server form, so ajax can not be enabled
(unless write own code) using ScriptManager?

Any good way to solve this problem?

In addition to MasterPage, is there server side include syntax as available
in traditional asp page?

Thanks,
Ryan



Munna
Guest
 
Posts: n/a
#2: Jun 27 '08

re: MasterPage and Ajax ScriptManager


Hi

Whats wrong if you keep the script manager in master page...


Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Eliyahu Goldin
Guest
 
Posts: n/a
#3: Jun 27 '08

re: MasterPage and Ajax ScriptManager


Have ScriptManager in the master page and access it from the content page
with something like

ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);

Or use ScriptManagerProxy.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Ryan Liu" <liu-doNotCheck@powercati.comwrote in message
news:%23cKiyp3zIHA.5520@TK2MSFTNGP06.phx.gbl...
Quote:
Hi,
>
Since ScriptManager need inside a server form, and web content page using
MasterPage can not have another server form, so ajax can not be enabled
(unless write own code) using ScriptManager?
>
Any good way to solve this problem?
>
In addition to MasterPage, is there server side include syntax as
available in traditional asp page?
>
Thanks,
Ryan
>

Closed Thread