Ask a Question related to ASP.NET General, Design and Development.
-
Intikhab Bashir #1
Listbox and enable submit
Hi,
I want the submit button to be enabled once a user chooses something
from a listbox. How can I do this? Here is what I have done up to
yet and it does not work. Thanks in advance.
The listbox is called lstCorp and submit button is called btnSubmit.
Private Sub lstCorp_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
lstCorp.SelectedIndexChanged
If lstCorp.SelectedIndex > -1 Then
btnSubmit.Enabled = True
End If
End Sub
HTML:
<asp:listbox id="lstCorp" DataTextField="proc_corp" Runat="server"
SelectionMode="Multiple"></asp:listbox>
<p></p>
<asp:button id="btnSubmit" runat="server" Text="Submit"
Enabled="true"></asp:button>
Intikhab Bashir Guest
-
enable/disable submit button
:confused; can anyone help? i want to setup a form that allows users to upload files. i'm using ASPupload and this works great! however if a... -
click listbox and refresh another listbox
Can someone guide me to a resource on building set of drill-down listboxes? Basically I want to have 4 listboxes. The first starts out with... -
Item label displays as "," when moving from listbox to listbox
I have 2 listboxes: "lb_unselected" and "lb_selected". The first thing in the actions is loop through an array populating these two listboxes. ... -
[PHP-DEV] --enable-versioning does not work (was: [PHP-DEV] [PATCH] disallow --enable-versioning with shared modules)
Hello Jani, Friday, November 14, 2003, 5:15:39 PM, you wrote: -
now desparate! - 1st listbox contents disappears when 2nd listbox appears?
On 23 Jun 2003 12:57:45 -0700, KathyBurke40@attbi.com (KathyB) wrote: Its been a while since you posted but I will answer anyway. The problem...



Reply With Quote

