473,395 Members | 1,936 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,395 software developers and data experts.

Checkbox on change update

8
hi i need help on this problem, but please don't laugh at my question, i'm a newbie on this .net programing

can some one tell how to make this thing work :

Private Sub checkbox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles checkbox1check.CheckedChanged
DropDownList1.Enabled = Not DropDownList1.Enable
End Sub

when i brows the pages and i change the check condition on the checkbox1, the dropdownlist1 still working

in my thinking if i change the checkbox1 condition, the dropdownlist1 will be disabled. but in the web pages this dropdownlist still working

please give me a way how to make this work. thx
Nov 29 '06 #1
10 1991
bplacker
121 100+
DropDownList1.Enabled = Not DropDownList1.Enable

this should just be:
DropDownList1.Enabled = False

Hope this helps. If not, I guess I didn't understand the question correctly!
Nov 29 '06 #2
nona
8
DropDownList1.Enabled = Not DropDownList1.Enable

this should just be:
DropDownList1.Enabled = False

Hope this helps. If not, I guess I didn't understand the question correctly!
yes i understand that script, i think my script is the same thing if the initial condition of my dropdownlist.enabled properties is "true"(not "true" = false).
the real problem is on the script, but why is that my project in the browser is not changing following the change on the dropdownlist.enabled properties (the web display is not refreshed on the current condition)?
Nov 30 '06 #3
bplacker
121 100+
sorry, you need to change the PostBack property of the check box to be true, this way when they check the box, it refreshes the page with whatever new properties you set in your program.
Nov 30 '06 #4
nona
8
sorry, you need to change the PostBack property of the check box to be true, this way when they check the box, it refreshes the page with whatever new properties you set in your program.
bplacker thx, it work when i change the autopostback property.

thx a lot ok.
Dec 1 '06 #5
nona
8
hei, i have another question for u guys.

can i change the dropdownlist.enabled property( including to update the "dropdownlist"display on the html page ) of my dropdownlist in asp.net project without reloading the page again and again?
Dec 1 '06 #6
nmsreddi
366 256MB
hello

if you want to do any operation on web page (.aspx) page with out re loading

the only option is using script language.if you are familiar with java script its

good else there are many third party tools which uses ajax just try with them


regards

nmsreddi
Dec 2 '06 #7
nona
8
hello

if you want to do any operation on web page (.aspx) page with out re loading

the only option is using script language.if you are familiar with java script its

good else there are many third party tools which uses ajax just try with them


regards

nmsreddi
can you give me example a script that change an display object (enabled/disabled )with a java script on my asp.net project?

nb : sorry i never touch a java development sofware, but i want to learn how.

thanks before
Dec 4 '06 #8
bplacker
121 100+
google is very good for javascript
Dec 4 '06 #9
DropDownList1.Enabled = Not DropDownList1.Enable

this should just be:
DropDownList1.Enabled = False
Dec 4 '06 #10
nona
8
DropDownList1.Enabled = Not DropDownList1.Enable

this should just be:
DropDownList1.Enabled = False
i allready try the script and work well, because i want to make the condition change opposite the current condition, not to make it allways false.
Dec 5 '06 #11

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

Similar topics

4
by: WC Justice | last post by:
I have an ASP form that uses a recordset to build a table, with one of the columns containing a checkbox. Upon posting, the ASP code of the Post-To page uses the "For i = 1 to...
4
by: Jack | last post by:
Hi, I have a checkbox the value which goes to a database via a asp page that builds the sql string. In the front end asp page, the checkbox code is written as follows: <i><input...
2
by: Tomas Vera | last post by:
Hello All, I'm having problems creating a page with dynamic checkboxes in a WebApp. In my app, I need to query a database, then (based on results) add checkboxes to my form and set their...
2
by: Sebi | last post by:
Hello all is it possible to add a checkbox in a DataGrid for Boolean Data? Thanks in advance
3
by: Marc Castrechini | last post by:
I have a page that changes an <ASP:Checkbox value based on a user entered value in a textboxm using client side Javascript. After my submit is fired the value for the chkMyCB.checked does not get...
2
by: Nu2ASP.NET | last post by:
What I am trying to do is essentially 'flip' the bits, when the user clicks in the checkbox. For example, if the CheckBox appears checked, and the user un-checks it, I want the underlying data...
4
by: Hexman | last post by:
Hello All, I'd like to find out the best way to add a cb column to a dgv and process efficiently. I see at least two ways of doing it. ------------------------------- 1) Add a cb to the dgv,...
2
by: BenCoo | last post by:
Hello, In a gridview I've a checkbox (indicating a flag that is set or not). I fill the gridview via the wizard from ADO.NET 2.0 that generates automaticly the Insert, Update and Delete...
0
by: cyberdawg999 | last post by:
Greetings all in ASP land I have overcome one obstacle that took me 2 weeks to overcome and I did it!!!!! I am so elated!! thank you to all who invested their time and energy towards helping me...
0
by: TechnoAtif | last post by:
<?php include "dbconnect.php"; include "commonFunc.php"; ?> <!----------------------------------> <table width="80%" border="1" cellpadding="2" cellspacing="0"> <tr > <td...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.