Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 16th, 2004, 08:48 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default User Control Problem

hi all,
the problem is that events is happened for only one control after i drop user controls more that one!!!!

i made a usercontrol and i drop it twice in the page, then i define them , both of them have dropdownlist control with autopostback property set to true by default, the event selectedindexchanged is only executed by the first dropped control ....

any one could help

Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old March 16th, 2004, 12:37 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you please post the relevant pieces of code?
 
Old March 19th, 2004, 03:23 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

i just copy the code to a new user control and it works.
some times in .net certain events are not fired i don't know why!!
i am usin .net ver1.1. and winxp.



Ahmed Ali
Software Developer
 
Old March 19th, 2004, 09:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I don't know if this is a valid solution, but would adding a separate @Register directive for the same assembly. Then one would reference the first @Register directive, and the second one would reference the second @Register directive.
 
Old March 19th, 2004, 11:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you please post the relevant code you are using?

Cheers
Ken

Microsoft MVP - Windows Server (IIS)
www.adOpenStatic.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while using User Control vivekshah ASP.NET 1.0 and 1.1 Professional 0 August 7th, 2008 02:46 AM
Much much problem with the User Control! daffodils ASP.NET 1.0 and 1.1 Basics 7 October 20th, 2006 10:46 AM
Dynamic user control problem sandeep General .NET 0 September 26th, 2005 09:42 AM
Web User Control Problem shmacgregor VS.NET 2002/2003 18 February 22nd, 2004 06:29 PM





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