473,320 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Asp Disable/enable Textboxes And Buttons

Hi guys
can someone kindly help me about my code it seems incomplete or i just can make it right .I try using the disabled property of the textbox yes it workss, it disable it but when i set it to false like disabled="false" it does not enable the textbox.This is my code



<p><input type="text" name="txtbox1" size="20" disabled="true">
<input type="button" value="Click" name="B3" disabled="true"> Operator</p>
<p><input type="text" name="txtbox2" size="20"disabled="false">
<input type="button" value="Click" name="B4" disabled="false"> Supervisor</p>


thanks and regards
metalwing
Jan 17 '07 #1
2 1766
The correct code is:
<input type="text" name="txtbox1" size="20" disabled="disabled">
Or just
<input type="text" name="txtbox1" size="20" disabled>

if you want to enable it simple remove the disabled attribute like this:
<input type="text" name="txtbox1" size="20">

Hi guys
can someone kindly help me about my code it seems incomplete or i just can make it right .I try using the disabled property of the textbox yes it workss, it disable it but when i set it to false like disabled="false" it does not enable the textbox.This is my code



<p><input type="text" name="txtbox1" size="20" disabled="true">
<input type="button" value="Click" name="B3" disabled="true"> Operator</p>
<p><input type="text" name="txtbox2" size="20"disabled="false">
<input type="button" value="Click" name="B4" disabled="false"> Supervisor</p>


thanks and regards
metalwing
Jan 17 '07 #2
The correct code is:
<input type="text" name="txtbox1" size="20" disabled="disabled">
Or just
<input type="text" name="txtbox1" size="20" disabled>

if you want to enable it simple remove the disabled attribute like this:
<input type="text" name="txtbox1" size="20">


hi wardenz

well ill try it later..ill pm you whats the result thankss..
Jan 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: HolaGoogle | last post by:
Hi all, Can you please tell me what's wrong with my code??? i do have this database in wich i have to field.One is a "yes/no" field and another one is "number" field. To display the yes/no field...
2
by: Dntc | last post by:
Hi All Is there anyway to enable/disable the toolbar buttons on the fly as like in MFC which helps centralizing this process?Let's i have a toolbar button ToolbarButtonSave which can be...
7
by: Randy | last post by:
I hope somebody can make a hero out of me before tomorrow! Let's say I have a web page with a couple of textboxes, checkboxes, radio buttons, etc. User fills in some data, clicks submit, and off it...
2
by: PamelaDV | last post by:
I am wondering if there is a way to disable the "X" used to close the Access application window? I know how to disable it for individual forms, but I would like to disable it for the application...
4
by: tshad | last post by:
I have a page that has about 20 textboxes and dropdowns that I want to disable until a button is pushed. I don't want them to be hidden which I can do with <div visible=false runat=serveror...
1
by: inadsad | last post by:
Good Day, I have 2 forms with bindingNavigator and have a simple routine to enable/disable navigator buttons. Each nav button is assigned to a tag value. The problem is that if I want to...
6
by: Brandon McCombs | last post by:
Hello, I have a form that contains a listview on the left side and a column of buttons on the right side. Only some of the buttons do I want enabled all the time. The other buttons should be...
3
by: Pietro | last post by:
Hi all, First of all I'd like to thank you very very much ,as finally after many years of searching,I could find a code to disable/enable the shift key,but actually i cannot use the code as I'm...
3
by: =?Utf-8?B?UGxhdGVyaW90?= | last post by:
I have link buttons in a Gridview that, depending on the value in another column (Not the Key column) will need to be disabled. For example, (Column2 has link buttons) Column1 ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.