473,513 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ReadOnly DropDown and other HTML controls

Hi guys!

Users of the web application I'm working on have said they don't like the
visual effect that DISABLED property sets on controls. You know, the
chiselled style.

So now I have to look forward other kind of solution, so the users cannot
modify the content or selection until I let them. The problem is that there
isn't a common READONLY property for all controls. Actually, only input
type=text will let me use that property. I need to emulate this behavior for
these tags:

CheckBoxes: I found that onclick="return false;" will work, though
it's not what I like.
RadioButtons: Can't get them to work neither with scripts, nor with
properties.
DropDown and ListBoxex (SELECT tag) Any Idea?

If you have passed through this, please drop me a line. Please remember I
can't use disabled property.

Thanks a lot!

Nov 18 '05 #1
3 3498
Can you just turn everything to labels instead of their controls??

"Tiësto" wrote:
Hi guys!

Users of the web application I'm working on have said they don't like the
visual effect that DISABLED property sets on controls. You know, the
chiselled style.

So now I have to look forward other kind of solution, so the users cannot
modify the content or selection until I let them. The problem is that there
isn't a common READONLY property for all controls. Actually, only input
type=text will let me use that property. I need to emulate this behavior for
these tags:

CheckBoxes: I found that onclick="return false;" will work, though
it's not what I like.
RadioButtons: Can't get them to work neither with scripts, nor with
properties.
DropDown and ListBoxex (SELECT tag) Any Idea?

If you have passed through this, please drop me a line. Please remember I
can't use disabled property.

Thanks a lot!

Nov 18 '05 #2
for readonly controls, i render them as literals instead, (with a disabled
style). for checkboxs / radio i output the appropriate gif. if you subclass
the controls its easy to add a readonly property. you can store the values
in viewstate or a hidden field.

-- bruce (sqlwork.com)

"Tiësto" <a@a.com> wrote in message
news:O$**************@TK2MSFTNGP11.phx.gbl...
| Hi guys!
|
| Users of the web application I'm working on have said they don't like the
| visual effect that DISABLED property sets on controls. You know, the
| chiselled style.
|
| So now I have to look forward other kind of solution, so the users cannot
| modify the content or selection until I let them. The problem is that
there
| isn't a common READONLY property for all controls. Actually, only input
| type=text will let me use that property. I need to emulate this behavior
for
| these tags:
|
| CheckBoxes: I found that onclick="return false;" will work, though
| it's not what I like.
| RadioButtons: Can't get them to work neither with scripts, nor with
| properties.
| DropDown and ListBoxex (SELECT tag) Any Idea?
|
| If you have passed through this, please drop me a line. Please remember I
| can't use disabled property.
|
| Thanks a lot!
|
|
|
Nov 18 '05 #3
I've proposed that approach, but it'd involve an unnacceptable amount of
work, al least for the moment.
"MikeL" <Mi***@discussions.microsoft.com> wrote in message
news:00**********************************@microsof t.com...
Can you just turn everything to labels instead of their controls??

"Tiësto" wrote:
Hi guys!

Users of the web application I'm working on have said they don't like the
visual effect that DISABLED property sets on controls. You know, the
chiselled style.

So now I have to look forward other kind of solution, so the users cannot
modify the content or selection until I let them. The problem is that
there
isn't a common READONLY property for all controls. Actually, only input
type=text will let me use that property. I need to emulate this behavior
for
these tags:

CheckBoxes: I found that onclick="return false;" will work, though
it's not what I like.
RadioButtons: Can't get them to work neither with scripts, nor
with
properties.
DropDown and ListBoxex (SELECT tag) Any Idea?

If you have passed through this, please drop me a line. Please remember I
can't use disabled property.

Thanks a lot!

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
12353
by: Dannyboyo | last post by:
I have what I hope is a simple request. I can't really code in javascript, but I am pretty good at cusomizing it with slight modifications. I code in ASP and HTML. I am trying to capture customer...
2
1640
by: Patrick Spieler | last post by:
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...
1
1051
by: Kate Hudson | last post by:
I'm creating a Web Form that has a lot of controls. The first control is an HTML DropDown that contains IDs populated through an ADODB Recordset object. I would like to dynamically fetch data in...
10
7222
by: GP | last post by:
Is it possible to iterate through all the controls collection and make the textboxes alone as read only.I don't see a readonly property for the Control.Can some one help me in this context? I...
2
1207
by: Cheryl | last post by:
I have grabbed a menu from a javascript site ( http://www.dynamicdrive.com/dynamicindex1/topmen3/index.htm ) and added to my page. The problem is however the dropdown comes down on top of text and...
3
8055
by: **Developer** | last post by:
I want to have a ComboBox that is loaded programmically not except keyboard inputs. I tried in KeyDown not calling MyBase.OnKeyDown(e) and also tried setting e.Handled = True but neither appear...
5
11869
by: jung_h_park | last post by:
From: jung_h_park@yahoo.com Newsgroups: microsoft.public.dotnet.framework.aspnet Subject: Dropdown List not retaining its SelectedValue Date: Mon, 26 Jun 2006 21:02:57 -0700 Hello, My...
2
1582
by: SF | last post by:
Hi, I am new to ASP.NET. I have started to create a new ASP.NET web. I can succesfully insert a table into a form but my form does not look good becuase some filed (from table) are foreigh key...
13
2172
by: Shutey | last post by:
I have a strange issue with dropdowns. Using php4, mySQL5, Apache 2 on a fast XP pro PC, I have a form which requires 5 dropdowns populated with indentical values. I extract the values using SQL...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.