Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8422143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:21:29+00:00 2026-06-10T03:21:29+00:00

My masterPage, I use acordion menu <%@ Master Language=C# AutoEventWireup=true CodeBehind=DefaultMaster.Master.cs Inherits=Lab.DefaultMaster ClientIDMode=Static %>

  • 0

My masterPage, I use acordion menu

<%@ Master Language="C#" AutoEventWireup="true" 
            CodeBehind="DefaultMaster.Master.cs" Inherits="Lab.DefaultMaster" 

ClientIDMode="Static" %>

<%@ Import Namespace="Resources" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link type="text/css" href="css/style.css" rel="Stylesheet" />
<title>
<asp:ContentPlaceHolder ID="title" runat="server">
</asp:ContentPlaceHolder>
</title>
<link href="css/custom-theme/jquery-ui-1.8.2.custom.css" type="text/css" 
 rel="Stylesheet" />
<link type="text/css" href="css/accordion.css" rel="Stylesheet" />
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.2.custom.min.js"></script>
<script src="/js/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/ddaccordion.js"></script>
<script type="text/javascript">


ddaccordion.init({ //top level headers initialization
headerclass: "expandable", //Shared CSS class name of headers group that are 
expandable
contentclass: "categoryitems", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header?
Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds 
 before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? 
true/false 
defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. 
 [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so  
never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when 
it's collapsed and expanded,

respectively ["class1", "class2"]
togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's 
collapsed and expanded, respectively

["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), 
or keywords "fast", "normal", or "slow"
oninit: function (headers, expandedindices) { //custom code to run when headers
  have initalized
//do nothing
},
onopenclose: function (header, index, state, isuseractivated) { //custom code to 
run whenever a header is opened or closed
//do nothing
}
});
ddaccordion.init({ //2nd level headers initialization
headerclass: "subexpandable", //Shared CSS class name of sub headers group that
are expandable
contentclass: "subcategoryitems", //Shared CSS class name of sub contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? 
Valid value: "click" or "mouseover
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before 
 header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? 
 true/false 
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] 
 denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so 
 never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["opensubheader", "closedsubheader"], //Two CSS classes to be applied 
 to the header when it's collapsed

and expanded, respectively ["class1", "class2"]
togglehtml: ["none", "", ""], //Additional HTML added to the header when it's 
 collapsed and expanded, respectively

["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200),
 or keywords "fast", "normal", or "slow"
oninit: function (headers, expandedindices) { //custom code to run when headers
  have initalized
//do nothing
},
onopenclose: function (header, index, state, isuseractivated) { //custom code
to run whenever a header is opened or closed
//do nothing
}
});


</script>

<asp:ContentPlaceHolder ID="head" runat="server">

</asp:ContentPlaceHolder>

<style type="text/css">
.style1
{
width: 140px;
}
</style>

</head>

//body

<body style="min-width:930px;">
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td style="vertical-align:top;" class="style1">
<div class="arrowlistmenu">

<h3 class="menuheader expandable">asd</h3>
<ul class="categoryitems">
<li><a href="/GeneralData/Data.aspx">asd</a></li>
</ul>

<h3 class="menuheader expandable">sd</h3>

<ul class="categoryitems">

<li><a href="/Instruct/page2.aspx">sdf</a></li>
<li><a href="/Instruct/page3.aspx">sdf</a></li>
<li><a href="#">sdf</a></li>
<li><a href="#">sdf</a></li>
<li><a href="#">sdf</a></li>
<li><a href="#">sdf</a></li>

</ul>

<h3 class="menuheader expandable">sdf</h3>
<ul class="categoryitems">
<li><a href="#">sdf</a></li> 
<li><a href="#">asd</a></li>
<li><a href="#">asd</a></li>
</ul>
<h3 class="menuheader expandable">asd</h3>
</div>

</td></tr></table>
</body>
</html>

when launching a page, he gave me error

Server Error in '/' Application.

An entry with the same key already exists.

Description: 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. 

Exception Details: System.ArgumentException: An entry with the same key already exists.

Source Error: 


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.

Stack Trace: 


[ArgumentException: An entry with the same key already exists.]
   System.Collections.Specialized.ListDictionary.Add(Object key, Object value)
                                                                           +6236205
   System.Web.UI.ClientScriptManager.RegisterExpandoAttribute(String controlId, 
  String attributeName, String attributeValue,
 Boolean encode) +272
   System.Web.UI.ScriptRegistrationManager.RegisterExpandoAttribute(Control control, 
 String controlId, String attributeName, 
String attributeValue, Boolean encode) +115
   System.Web.UI.ScriptManager.RegisterExpandoAttribute(Control control, S
   tring controlId, String attributeName,
 String attributeValue, Boolean encode) +44
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:21:30+00:00Added an answer on June 10, 2026 at 3:21 am

    You are a lucky to have an error cause in very first rows of your code. Because I’m just horrified by it. Change your validator’s ClientIDMode to Predictable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to use a static html page as an MVC3 razor masterpage. It
Today I have a Masterpage that contains my menu... Each aspx use that masterpage...
Can i use namespace which is imported on masterpage ? i can import and
I use webforms/masterpage, with .NET. I Have many Web User Controls into my page.
I have defined CSS in MasterPage so that all pages can use the same
I use asp.net script manager in master page to add js files . In
Initially i was planning to use master page for every page in my application.
I'm trying to use jQuery UI tabs much like a Master Page in ASP.Net.
I have a Masterpage and I want to bind a part of this master
I try to use Cufon fonts in my web page. I have master page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.