-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Bharat
Message 10 in Discussion
Hi,
I have another way to do the same. Suppose you have a user control and you want make
one Button visible false, the button can be any control I have taken button for this
example. Here is how you will go doing this.
User Control
You can have one public variable say
Public objAction As Object
On the click of the button you can say
ObjAction.Visible = False
Page (Which is using the user control)
Add the user control (give ID=MyCTL) add one button. On the code behind file of page
add
Protected WithEvents MyCTL As Test.TestWithEvent
Where Test.TestWithEvent is class id of the user control.
On Page load write
MyCTL.objAction = Button1
Button1 can be replaced with anything you want to make visible false.
The process is little complex you can also see the attachment file where I have added
control(ascx) file and aspx file.
HTH,
Thanks,
Bharat
View Attachment(s):
http://groups.msn.com/BDotNet/_notifications.msnw?type=msg&parent=1&item=5177
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_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]