 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

April 12th, 2011, 10:40 AM
|
|
Authorized User
|
|
Join Date: Apr 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Update Panel - Page 523
Hello,
I try to use the same exercise with my new project and I add an « UpdatePanelâ, but when I execute the program, I have this error (The message probably is not exactly, but I translate in English from Italian):
The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must be specified before the controls that need it.
I add the control ScriptManager empty before the UpdatePanel1 and after I have my photo albumâ¦
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
Why? I donât understand. I think all code is the same of book exercise.
Thanks.
|
|

April 12th, 2011, 10:51 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Did adding the ScriptManager fix the problem and do you know why you need to add it? Or did adding it not resolve the problem?
Imar
|
|

April 12th, 2011, 10:56 AM
|
|
Authorized User
|
|
Join Date: Apr 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, the ScriptManager fix the problem. I searched on Internet the error message and I find this solution.
Before, I opened in another window your site (Cap 15) and, I think, I have the same instructions in my site, but the Chap 15 run and my site no!
|
|

April 12th, 2011, 11:15 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
Before, I opened in another window your site (Cap 15) and, I think, I have the same instructions in my site, but the Chap 15 run and my site no
|
Sorry, but I have no idea what this means.
As the error message suggests, an UpdatePanel needs a ScriptManager (to handle stuff like references to client side script). This works for the examples in the book because the Master Page (Frontend.master) contains a ScriptManager.
Does that help?
Imar
|
|

April 12th, 2011, 11:18 AM
|
|
Authorized User
|
|
Join Date: Apr 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, Perfect!
Thanks.
|
|
 |
|