-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Mamta2008
Message 2 in Discussion


Hi 
Hari,
 
Were 
you able to get a solution to your problem? Can you please email the 
application 
in zip format so that I can have a look at it and then provide a solution for 
your query? I am unable to reproduce the error here.
 
-Mamta



From: Hari.G [mailto:[EMAIL PROTECTED] 

Sent: Thursday, April 17, 2008 11:41 AM
To: 
MumbaiUserGroup
Subject: {Disarmed} Issue with Usercontrol in ASP.NET 
2.0




  
  
    
    New Message on MumbaiUserGroup
  
    

Issue with 
  Usercontrol in ASP.NET 2.0


  
    
    
      Reply

      
        
          
          
             
            Reply to Sender   Recommend 
            Message 1 in Discussion 
            
    
      
        
          
          
            From: Hari.G 
          
            

              
              
Currently we are migrating our .NET1.1 Application to 
              .NET2.0 and we are facing some strange issue with 
              Usercontrols.<o:p></o:p>
              
We are using a Usercontrol for Calender with 3 
              textboxes for Date, Month and year respectively. ( ID's for 
              these textboxes are 
              txtDay,txtMonth,txtYear)<o:p></o:p>
              
We are dynamically loading this user control more than 
              once in one of our .aspx file using the below 
              code.<o:p></o:p>
              
WPDTCalendarControl CalEffectiveEndDate = 
              
(WPDTCalendarControl)Page.LoadControl("../Controls/WPDTCalendarControl.ascx");<o:p></o:p>
              
In our 1.1 Appliocation when we execute the page where we 
              are dynamically loading the calendercontrol it generates 
              UNIQUE Id's for all the 3 
              textboxes....like<o:p></o:p>
              
_ctl10:txtDay, _ctl10:txtMonth, _ctl10:txtYear 
              <o:p></o:p>
              
When the same usercontrol is loaded for second time in 
              the same page it again generates 3 different unique 
              ID's.......Like<o:p></o:p>
              
_ctl13:txtDay, _ctl13:txtMonth, _ctl13:txtYear 
              <o:p></o:p>
              
Now the Issue is after migrating out code to .NET 2.0 , 
              when the same page is executed where the user control is 
              dynamically loaded , it is not generating the UNIQUE Id's for the 
              textboxes.<o:p></o:p>
              
the ID is always 
              txtDay,txtMonth,txtYear.<o:p></o:p>
              
_ctl is not getting appended with the 
              ID.<o:p></o:p>
              
We tried using UNIQUEID,CLIENTID properties of textbox, 
              since the ID is not Unique when the controls are rendered....all 
              the properties gives me the same id....i.e 
              txtDay,txtMonth,txtYear<o:p></o:p>
              
Any help on this would be a great 
              help!!!!!!!!!<o:p></o:p>
              
Thanks,<o:p></o:p>
              
Hari<o:p></o:p>
View other groups in this 
  category. 




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to