.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Accordion Control Problem

Posted By: samanth     Posted Date: March 18, 2013    Points:5   Category :ASP.Net
Hi All,

I have an issue with Accordion control.When i run the code and click on accordion pane dynamically the code is generating in source.I have to stop generating that code.Below I have pasted the code.Please help me on this issue.





<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Accordion Control.aspx.cs" Inherits="Accordion_Control" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!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">
<title>Yello Fade</title>
<style type="text/css">

.accordion
{
}
.acordionHeader
{
border:1px solid #2F4F4F;
color:White;
background-color:#2E4d7B;
font-family:Arial,Sans-Serif;
font-size:12px;
font-weight:bold;
margin-top:5px;
cursor:pointer;
}
.accordionHeaderSelected
{
border:1px solid #2F4F4F;
color:White;
background-color:#5078B3;
font-family:Arial,Sans-Serif;
font-size:12px;
font-weight:bold;
margin-top:5px;
cursor:pointer;
}
.accordionContent
{
background-color:#D3DEEF;
border:1px dashed @2F4F4F;
border-top:none;
padding:5px;
padding-top:10px;
}
#Message
{
width:250px;
padding:10px;
margin-bottom:10px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<asp:Accordion ID="Accordion1" runat="server" AutoSize="None" CssClass="accordion"
HeaderCssClass="accordionHeader"
HeaderSelectedCssClass="accordionHeaderSelected"
ContentCssClass="accordionContent" Width="488px">
<Panes>
<asp:AccordionPane ID="AccordionPane1" runat="server">
<Header>Login</Header>
<Content>
<fieldset class="login" style="width:10px" >

<legend style="color: #800000">Login</legend>
<table align="center" width="12cm">
<tr align="center">
<td align="center" class="AllTDText">
<asp:Label ID="AdidLabel" runat="server" CssClass="AllText">AD-ID*:</asp:Label>
</td>
<td align="center" class="AllTDText">
<asp:TextBox ID="AdidText" runat="server" CssClass="ADIDTextBox"></asp:TextBox>
</td>
<td class="AllTDText">
<asp:RequiredFieldValidator ID="Idreq" CssClass ="AllRequiredText" runat="server" ErrorMessage="Required" ControlToValidate="AdidText"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center" class="AllTDText">
<asp:Label ID="PwdLabel" runat="server" CssClass="AllText">Password*:</asp:Label>
</td>
<td align="center" class="AllTDText">
<asp:TextBox ID="PwdText" runat="server" TextMode="Password" CssClass="PwdTextBox"></asp:TextBox>
</td>
<td align="center" class="AllTDText">
<asp:RequiredFieldValidator ID="Pwdreq" CssClass ="AllRequiredText" runat="server" ErrorMessage="Required" ControlToValidate="PwdText"></asp:RequiredFieldValidator>
</td>
</tr>

<tr align="center">
<td colspan ="3" align ="right" valign ="top" >
<asp:Label ID="LabLoginStatus" runat ="server" CssClass ="LoginFailedText"></asp:Label>
<asp:Button ID="LoginButton" runat ="server" class="AllButton" Text="Login" onclick="LoginButton_Click" />
</td>
</tr>

</table>
</fieldset>
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="Acc2" runat="server">
<Header>dfs</Header>
<Content>desfesf</Content>
</asp:AccordionPane>
</Panes>
</asp:Accordion>
<asp:Panel ID="Message" runat="server">
Pay attention
</asp:Panel>

</div>
</form>
</body>
</html>


Responses

No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend