Hi I'am a new in .NET and I have some questions (for now :)). 1. My webform contains some text boxes and some combo boxes. Some of them are disabled. When I submit the form to save the data form the enabled controls, the disabled controls get blank (text boxes)
or not selected (combos). I think it is so because html can't request data from disabled controls. Is it so or? Does anybody have a solution? A solution might be readonly property for textboxes, but what to do with combos? 2. I use VS.NET 2002. Has occured
to anyone to give a value (e.g. 1) to a variable and after you check it's value, comes something like 4534213427352143???? 3. Does somebody know how to use the Context object to pass some data from a page to another for the duration of the request? Thanks
in advance
1) Not correct. If when you load your page you set values to controls (so that they have some) and then disable them (so that users cant change them) when you post, those controls have values, they have the values you set them to. IF however you don't set enabled.False,
but rather set Visible.False, then they in fact don't exist in the HTML and so there is no control to get a value from. I don't understand question 2, I don't do Question 3.
calin.berind...
Member
168 Points
37 Posts
Disabled controls and others
Aug 01, 2003 11:41 AM|LINK
jmurdock
Participant
1270 Points
402 Posts
Re: Disabled controls and others
Aug 01, 2003 03:15 PM|LINK