I can't use enabled/disabled controls due to requirements for having a user friendly app (they're hard to read and you can't copy/paste from them).
So I'm working on a screen where I have duplicate Panels that I hide/show on postback. One has textboxes/dropdowns/etc and the other just displays labels (which are turned into spans) and basically shows up as text.I hate having to duplicate all the data filling and any changes made to one on the other... and I'm thinking of the other 20 screens I have to do this on.
I'm just looking for a decent way to get the "here is the readonly mode" and "here is the updatable mode with editable controls".
My one thought is to use Ajax to write HTML, but I'd lose possible server side support as well as component/control support.
I'd love to just be able to say "here is my textbox, display it like a span now". Maybe a user control that swaps textboxes for labels?
I'm using Infragistics tools, Asp.net 2.0 and MS Ajax 1.0. Any help/advice would be appreciated.
So I'm working on a screen where I have duplicate Panels that I hide/show on postback. One has textboxes/dropdowns/etc and the other just displays labels (which are turned into spans) and basically shows up as text.I hate having to duplicate all the data filling and any changes made to one on the other... and I'm thinking of the other 20 screens I have to do this on.
I'm just looking for a decent way to get the "here is the readonly mode" and "here is the updatable mode with editable controls".
My one thought is to use Ajax to write HTML, but I'd lose possible server side support as well as component/control support.
I'd love to just be able to say "here is my textbox, display it like a span now". Maybe a user control that swaps textboxes for labels?
I'm using Infragistics tools, Asp.net 2.0 and MS Ajax 1.0. Any help/advice would be appreciated.