Last post Feb 19, 2007 07:57 AM by vishnubobade
May 09, 2006 07:22 PM|newbie06|LINK
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
System.InvalidOperationException: Only one instance of a ScriptManager can be added to the page.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
I have a control (search box) in my Default.master page. I added a textbox watermark to my search textbox in the control. When I hit the search button and redirect the to the searchresults.aspx page which has
a repeater and an updatepanel I get the above shown error.
Can I just add one ScriptManager to the Default.master page or how can I avoid this problem???
May 09, 2006 09:37 PM|newbie06|LINK
Enables nested components to add script and service references to pages that already contain a
May 09, 2006 10:09 PM|newbie06|LINK
I have a ScriptManager in my Default.master page:
<!-- Manages "Atlas" components, partial page rendering, client requests, and server responses on ASP.NET pages. -->
I have a ScriptManagerProxy in my “SearchBox” control which is in the Default.master page:
<!-- Enables nested components to add script and service references to pages whose parent element (such as a master page or a user control)
already contains a ScriptManager control. -->
When I search for “nba” for example I get redirected to my searchresults.aspx page and when I hit the next button to get the next 10 search results I receive this error message
and my searchbox control has all of a sudden 2 textboxes.
I get the following error message:
Assertion Failed: Duplicate use of id “ctl00_SearchBox1_TextBoxGoogleSearch of object of type “Sys.UI.TextBox”.
My searchresults.aspx page has a ScriptManagerProxy as well:
Can anybody help?
May 19, 2006 10:21 PM|Ted Glaza [MSFT]|LINK
Dec 20, 2006 11:36 AM|venkatzeus|LINK
I had the same problem and i solved by using the scriptmanager only in the master page. Sice the master page is in control of other pages, u just have to use the <asp:UpdatePanel> and the <ContentTemplate> in the other pages, which use the Master pages..
Hope this helps you
Feb 19, 2007 07:57 AM|vishnubobade|LINK
Hi dear... I have the same problem but i have solve that......
for that try this one
1) register your Microsoft.Web.Atlas dll in GAC
2) on master file top register dll
3) on your web page or controls register ...
4) on drop down listbox controls ....
and its work fine.
hope this will help you.