ReadOnly Mode for WebForms

  • Thread starter Thread starter Patrick Spieler
  • Start date Start date
P

Patrick Spieler

hello

is there an easy way to set the whole aspx-webform in a read-only mode?

i'm thinking about a generic solution via basepage which replace the
controls
on the fly (dropdown with label/literal) etc

ideas?

regards
pat
 
Not that I'm aware of, but you should easily be able to disable any controls
you want.
 
just off the top of my head, no idea if this will work.... you may need a
more sophisticated way to get to all the controls on the page.....

dim x as control

for each x in page.controls
try
x.readonly = true
catch
'do nothing. that control mustn't support readonly or something
end try
next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top