How to clear controls of 1 user control from selected index change of a drop downlist in another U.C

Posted by Laghaterohan under Regular Expressions on 12/28/2010 | Points: 10 | Views : 1388 | Status : [Member] | Replies : 2
Hello,

I have a user control of a Date Box which contains Month and Year and Submit button.
I have another user control which has several controls.

When i change the Year or Month it should clear all the contents in my controls below....how should i do it??

i have my clear controls method ready which i will be writing on the selected index change event of Month and Year DDL in user control 1.
But, how will i be able to do it?? Please help me out...


Thanks!
Happy Coding :)

Best Regards,
Rohan Laghate



Responses

Posted by: Prabhakar on: 2/3/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
HI Rohan Laghate

i am not understand ur problem . but u want to Clear your Control . so You Write Code dropdownList SelectIndex Change Events
ddlname.item.clear;
txtpassword.text="";

i think it's use full for you

Best Regard's
Prabhakar

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/3/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check this link... it shows how to access from one user control to the other... this way u can change as per ur requirements

http://www.codeproject.com/KB/aspnet/EventDrivenUserControl.aspx

Thanks
Karthik
www.f5Debug.net

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response