Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Ajax and ASP.NET MasterPages mix?

Has anyone had experience using these two technologies in tandem? What are (if any) the major difficulties in getting the two to cooperate? How would a site using these technologies be different than a normal ASP.NET Web Application with Ajax?

Thanks!

like image 275
Mark Carpenter Avatar asked Dec 10 '22 22:12

Mark Carpenter


1 Answers

Yes, they work well together.

The only thing to watch out for is if you have a ScriptManager on the Master, you can't declare another in Content pages.

If you want to register scripts and services through the ScriptManager on Content pages, you'll need to use a ScriptManagerProxy control instead. It's a control specifically designed for the Master/Content scenario.

like image 179
Dave Ward Avatar answered Dec 27 '22 04:12

Dave Ward