| | |
help plz
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2007
Posts: 4
Reputation:
Solved Threads: 0
Hi all ,
I want to disable a text box when i select a value from drop down list, but im not able to so can u please help me
This is my code:
Protected Sub type_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles type.SelectedIndexChanged
If type.SelectedItem.Value = "Income" Then
vc.Enabled = False
Else
vc.Enabled = True
End If
End Sub
I want to disable a text box when i select a value from drop down list, but im not able to so can u please help me
This is my code:
Protected Sub type_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles type.SelectedIndexChanged
If type.SelectedItem.Value = "Income" Then
vc.Enabled = False
Else
vc.Enabled = True
End If
End Sub
There could be a few problems. the best idea is to use the debugger to see what value the if statement is actually comparing. use F9 to create a break point and then just move through the code. The debugger is the most powerful tool available to any programmer.
but you also might want to try
hope that helps 8-|
but you also might want to try
ASP.NET Syntax (Toggle Plain Text)
type.SelectedValue.ToString() = "Income"
hope that helps 8-|
- mike mclennan
•
•
Join Date: May 2007
Posts: 4
Reputation:
Solved Threads: 0
Hello Sir
Thanks for ur reply, Sir this also i have tried to do but not able to, the problem is i have a text box and dropdown box with 2 values income and expenses, when i select income value then then voucher number text box should be disabled and if i select expenses then voucher number text box should be enabled. Kindly help me.
Thanku in advance
Thanks for ur reply, Sir this also i have tried to do but not able to, the problem is i have a text box and dropdown box with 2 values income and expenses, when i select income value then then voucher number text box should be disabled and if i select expenses then voucher number text box should be enabled. Kindly help me.
Thanku in advance
![]() |
Similar Threads
- can someone plz help me with this? (Visual Basic 4 / 5 / 6)
- I NEED SUPPORT **"IMPORTANT"** PLZ HELP (Windows NT / 2000 / XP)
- Windows media player (Windows NT / 2000 / XP)
- Bridge.dll...Make it go away, Plz (Viruses, Spyware and other Nasties)
- can sum1 look @ dis plz (Viruses, Spyware and other Nasties)
- Hijackthis log file - plz help (Viruses, Spyware and other Nasties)
- IE not working...PLZ help :cry: (Web Browsers)
- PLZ help it's urgent! (Web Browsers)
- plz help ppl...... (Computer Science)
Other Threads in the ASP.NET Forum
- Previous Thread: Login page refreshes and clears fields
- Next Thread: Timeout error
Views: 680 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net box browser button c# checkbox click commonfunctions complex connection dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dropdownlist dynamically edit editing expose feedback fileuploader fill flash form formatdecimal formview google gridview gudi iframe iis javascript list listbox login microsoft migration mono mouse mssql news numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail richtextbox rows save schoolproject search security select session silverlight smartcard smoobjects software sql sql-server sqlserver2005 suse textbox theft tracking unauthorized validation vb.net video videos view vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





