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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

JQuery accordion open state

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net


Is it possible to add an additional condition to the following script so that the accordion will be open when first loaded. The 'alwaysOpen' condition only works after the accordion pane is manually opened.

            header: 'div.title',
            active: false,
            alwaysOpen: false,
            animated: false,
            autoheight: false

View Complete Post

More Related Resource Links

JQuery accordion menu issue!!!

Hi,I have added this accordion menu in the master page of an asp.net(C#) website. http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm?expandable=4&subexpandable=0It works fine in those content page which are in the root folder but it is continously showing error in Administration page and the error is ddaccordion is not defined [Break on this error] ddaccordion.init({ //top level headers initialization Can anybody let me know why it is giving this error?Any help will be really appreciated !!!Regards,Dazy

Hiding a jQuery UI Accordion panel

I have several Accordion panel and each one contains a datalist of hyperlinks, that when clicked will append a querystring to the current URL. What I'm trying to do is after the pages reloads or after clicking a hyperlink I want that datalist together wit its corresponding accordion panel gone. I'm using a single file for the markup and code btw.

how to open a subform model Form,Sub Window form using jquery that save the data ajex

how to open a subform model Form,Sub Window  form using jquery that save the data ajex

how to maintain state of accordion pane from one page to another

 Hi,   I am using accordion control in one of my project. I want to maintain the state of the accordion pane when the user navigates from one page to another. Can someone help me  ?? Below given is the code of my accordion control I do not want to use query string because i am using url rewriting. <cc1:Accordion   ID="accNavMenu" runat="server" TransitionDuration="100"    FramesPerSecond="200" FadeTransitions="true" RequireOpenedPane="false"    OnItemDataBound="accNavMenu_ItemDataBound"   ContentCssClass="sidenav2" HeaderCssClass="sidenav"    HeaderSelectedCssClass="acc-selected">    <HeaderTemplate>    <asp:HiddenField ID="hdTemplate" runat="server"           Value='<%# DataBinder.Eval(Container.DataItem,"Template") %>'      />     <asp:HiddenField ID="hdSectionID" runat="server"           Value='<%# DataBinder.Eval(Container.DataItem,"SectionID") %>'      />    <table cellpadding="0" cellspacing=&quo

ExecuteReader requires an open and available Connection. The connection's current state is closed.


I am accessing SQL2005 with C# code using  OleDbConnection.


A try and catch block catches the following error once a while between the Open() and Close() of the connection:

ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.


I do not even have any idea where to start to debug this.  The ExecuteNonQuery() runs a delete SQL query. It works 99.9% of the time. I do not see anything wrong when this error happens. 


Any hint would be greatly appreciated.



how to open a page self after 1 minute breack)(using href or jquery)


i create two page.



i require page1 opend page2 after every one minute

jQuery toggle buttons won't toggle to ui-state-active?!?!? help


I am borrowing code from http://www.filamentgroup.com/examples/buttonFrameworkCSS/#

and i've basically literally just copied their code from top to bottom.  The ONLY exception is , I am using the following script libraries and a different version of Jquery, 1.4.2.  I can't seem to get the toggle buttons to toggle to ui-state-active so that they will go to a different color.  All the buttons are stuck on the ability to go to two states only.  default color and hover color (a lighter blue). 

anyways, here's the code.  I am using IE6 and firefox.  Both are not working.  Yet when I browse filament's group code , it works perfectly for their page.  so what am I doing wrong here?  here's what I got on my page:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">

<link type="text/css" href="css/custom-theme/jquery-ui-1.8.5.custom.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.5.custom.min.js"></script>
<script type="text/javascript" src="ui/jquery.ui.core.js"></script&g

create a data driven jquery accordion control



i have a very simple table in my database which holds information about students.

what i would like is to create a jquery accordion which will have a heading for each student and then when the user clicks on a students name, it will expand and display the students information from this table.

is this possible? please can someone show me examples of how i can do this?

i use linq to sql and its an asp.net form (aspx page) not mvc.

i am very new to this aso any help would be much apperiated along with examples.

the only thing i have so far is the following - my accordion is in a jquery dialog box also.

$(function() {

	$('#my div').dialog({

		modal: 'true',

		title: 'students',

		open: function() {





many thanks

Disabling Button with jQuery doesn't send state back to server


Before I go the route of using hidden fields or something similar, is there any way to send back to the server changes to the disabled state of an ASP.net Button control?  I have a Button that is initially enabled and I disable it via jQuery on the client.  Works great.  The only problem is when I do a PostBack the server still thinks the Button is enabled and sends back a response that changes it back to enabled.  Why doesn't the ViewState send back the current disabled status of the Button?  Is there a way to force it to postback the changes?  Other ASP.net controls, like the CheckBox, do send back the state changes to the server.  Seems odd to me.

Anyone know the reason behind this behavior and/or how to fix it?


How do I do a slideUp with jQuery to open a div, and then us slideDown to close it


I want to have a div slide up to open instead of sliding down to open.  Does jQuery allow me to do that?

GridView Confirmation Box Using JQuery BlockUI in asp.net

JQuery is the most popular JavaScript library. One of the main reasons for its fame is the plugin architecture. Anyone can create a separate library that leverage the JQuery library. In this article we are going to look at the BlockUI library which is used to block the user screen while performing a task.

Truly Understanding View State

This article provides a detailed understanding of the ViewState.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

call JavaScript - jQuery code from ASP.NET Server-Side

jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.

jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.

Displaying Row Details Tooltip on GridView using JQuery

Continuing exploring JQuery! I decided to implement a feature to display some kind of details related to a row displayed on GridView. For example when displaying employees details on GridView some information might not fit in the GridView because it will make it huge and wide. These infomration can be diplayed as Tooltip. Or when you want to display a picture and some kind of formated text to be diplayed as tooltip when mouse hover on the image.

jQuery: Highlight Gridview Rows with Checkbox

Im learning and experimenting with jQuery and ASP.NET. Below is a simple solution I created to highlight rows in a gridview by clicking on a checkbox next to the row.

Gridview setup:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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