Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable an iframe or form

Status
Not open for further replies.

peifern

Technical User
Joined
Aug 13, 2002
Messages
4
Location
SG
Hi,
I require help on the following:

1. I need to disable an iframe so that the page with all its input controls within the iframe cannot be editable.

OR

2. I need to disable the whole form of a page so that all the textboxes and drop down lists cannot be editable.

Thanks and regards,
Elena
 
You could set the IFrame's enabled property to false which would probably have the desired effect or loop through all the controls in the Page and set them individually something like...
Code:
foreach(Control c in Page){
  c.Enabled = false;
}

Whatever you choose you may want to read this recent post on Scott Mitchell's blog which covers some odd behavior surrounding this...


Rob

Go placidly amidst the noise and haste, and remember what peace there may be in silence - Erhmann 1927
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top