\r\n\r\n
Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > ASP.Net > Events with Nested Controls


\r\n \r\n
 
 
Thread Tools Display Modes

\r\n\r\n\r\n
Hi all, I\'ve recently moved into ASP.Net with Ajax and have run into some frustrating issues dealing with nested controls. It seems that when I have a control that then must dynamically load a different control, the controls in the child control don\'t operate correctly.
\r\n
\r\nI\'ve noticed that when I add a button to the child control, it doesn\'t fire when you click it at first, but the 2nd time you click it, the child control itself closes.
\r\n
\r\nI\'ve attached a sample project that demonstrates the problem.
\r\n \r\n\r\n
\r\n \r\n \r\n
\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n
\r\n Attached Files\r\n \r\n \r\n \r\n \r\n\r\n
File Type: zipWebApplication2.zip (15.8 KB, 2 views)
\r\n
\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; // next/previous post info pn[1346613] = "1346613,1346613"; pn[0] = ",1346613"; // cached usernames pu[0] = guestphrase; pu[128613] = "BulletSponge"; // -->
Prev Previous Post   Next Post Next
  #1  
Old 11-12-2009, 01:51 PM
BulletSponge's Avatar
BulletSponge BulletSponge is offline
Junior Contributor
 
Join Date: Aug 2005
Location: Orlando
Posts: 335
Default Events with Nested Controls


Hi all, I've recently moved into ASP.Net with Ajax and have run into some frustrating issues dealing with nested controls. It seems that when I have a control that then must dynamically load a different control, the controls in the child control don't operate correctly.

I've noticed that when I add a button to the child control, it doesn't fire when you click it at first, but the 2nd time you click it, the child control itself closes.

I've attached a sample project that demonstrates the problem.
Attached Files
File Type: zip WebApplication2.zip (15.8 KB, 2 views)
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->