ASP.NET - Accordian Problem

Asked By Sudhansu shekhar
03-Feb-12 03:59 AM
 Hi all,

 I'm using Accordion Panel(Ajax) for menu. Its working fine. But there is one problem. While I'm clicking 1st time to any sub-menu that it will expand but once click to that menu and new page appear, this  expand menu suddenly compressed. So in No's of menu again i need to search that particular sub-menu to reopen. Please help me out.

Thanks.....



  
  kalpana aparnathi replied to Sudhansu shekhar
03-Feb-12 04:11 AM
hi,

Please check your code is written within ispostback() method or not.if not please write it like this

if(!ispostback())
{

//code for accordian control

}

Hope will helps you

Thanks,
  dipa ahuja replied to Sudhansu shekhar
03-Feb-12 05:04 AM
Simple Example


<style type="text/css">
  .header
  {
    background-color#4A669C;
    border:1px;
    color:White;
  }
  .content
  {
    background-color#E2E9F1;
    
  }
  </style>

<cc1:ScriptManager ID="ScriptManager1" runat="server">
  </cc1:ScriptManager>
  <cc1:Accordion Width="400" ID="Accordion1" runat="server" HeaderCssClass="header" ContentCssClass="content">
    <Panes>
    <cc1:AccordionPane runat="server" ID="pane1">
      <Header>
      <u>  Asp.NET</u></Header>
      <Content>
      Here info about asp.net<br />
      <br />
      <br />
      </Content>
    </cc1:AccordionPane>
    <cc1:AccordionPane ID="pane2" runat="server">
      <Header>
      <u>C#</u>
      </Header>
      <Content>
      Info About C#<br />
      <br />
      <br />
      </Content>
    </cc1:AccordionPane>
    <cc1:AccordionPane ID="pane3" runat="server">
      <Header>
       <u> Vb.NET</u></Header>
      <Content>
      Info about VB.net<br />
      <br />
      <br />
      </Content>
    </cc1:AccordionPane>
    </Panes>
  </cc1:Accordion>

Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B types? (B) What is concept of Boxing and Unboxing ? (B) What is the difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET sessions with classic ASP? (B) Which are the various modes of storing ASP.NET
with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example is assumed. Answer2 8000 Answer3 The business logic is the aspx.cs or the aspx.vb where the code is being written. The presentation logic is done with .aspx extention. How in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging trace to true in the line in the html format of the page. %@ Page Language = ”vb” trace = ”true”AutoEventWireup = ”false” Codebehind = ”WebForm1.aspx.vb” Inherits = ”WebApplication2.WebForm1?&gt; 2. You can enable the debugging in the application level for
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to
in web how to session useful in web plz send me details with code in vb best benifit of the session is user based mean u can differentiate login user in different way • Process independent. ASP.NET session state is able to run in a separate process from the ASP.NET host process. If session state is in a separate process, the ASP.NET process can come and go while the session state process remains available. Of course, you ASP, too. • Support for server farm configurations. By moving to an out-of-process model, ASP.NET also solves the server farm problem. The new out-of-process model allows all
authentication modes and its implementation in projects hi, i am doing a project in asp.net. . i want to use a authentication mode in this project.it is a educational based do some authentication in this project. How To: Use Forms Authentication with SQL Server in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Andy Wigley, Kishore Gopalan Microsoft Corporation August 2005 Applies To • ASP.NET version 2.0 • SQL Server 2000 Summary This How To shows you how you can authentication, create the user store database, grant database access to your Web application account, configure ASP.NET membership settings, and set password complexity rules. Contents Objectives Overview Summary of Steps Step 1