Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 11th, 2010, 08:14 AM
Authorized User
Points: 343, Level: 6
Points: 343, Level: 6 Points: 343, Level: 6 Points: 343, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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...
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.