Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2010, 08:14 AM
Authorized User
 
Join Date: Mar 2009
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
Default Trouble registering jquery accordion on code behind

Hello everyone, I am trying to register a jquery accordion on a dynamically loaded usercontrol. Here is the situation:

The parent page has a asp menu control and a placeholder control, when the menu option is clicked, the corresponding webusercontrol is loaded into the placeholder control on the parent page.

This is how I registered datepicker control on the .ascx (usercontrol) code behind


protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);

String script = "$(document).ready( function(){ $('#" + txtArrivalDate.ClientID + "').datepicker(); } );";
ScriptManager.RegisterClientScriptBlock(base.Page, base.Page.GetType(), String.Format("jQuery_{0}", txtArrivalDate.ClientID), script, true);

}

This works fine,

However the problem I am having is with registering plugins like accordion and the modal-form. as I have little knowledge on jquery and using

scripts in general.

Your suggestions are well appreciated,

Thanks for all the previous helps...





Similar Threads
Thread Thread Starter Forum Replies Last Post
JQuery for ASP.NET sample code doesn't load in VS 2008 Aging Hippie All Other Wrox Books 3 August 3rd, 2010 11:24 AM
Need help with the accordion lm111 ASP.NET 3.5 Professionals 5 August 27th, 2009 07:55 AM
Trouble understing code skyhigh007 PHP Databases 1 July 13th, 2006 01:29 AM
Registering a new user ssaylanc BOOK: ASP.NET Website Programming Problem-Design-Solution 4 January 9th, 2005 04:34 PM
Trouble registering a servlet in Websphere 5. hellion102 J2EE 0 November 5th, 2003 11:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.