I've got a data combo with about 12 rows, of which only the first two
are selectable!
I put a label on the page below the datacombo and selecteditem.te xt
will populate the list when I change the selection combo for either of
the first two items, but not for any of the others.
I'm using database objects to populate the Datacombo.
The code is:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
odaParam.Fill(D sParam2)
cmbParam.DataBi nd()
End If
End Sub
Private Sub cmbParam_Select edIndexChanged( ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
cmbParam.Select edIndexChanged
Label1.Text = cmbParam.Select edItem.Text
End Sub
The HTML is:
<P>
<select name="cmbParam" onchange="__doP ostBack('cmbPar am','')"
language="javas cript" id="cmbParam">
<option value="0"> Select..</option>
<option value="S">Body Location</option>
<option value="S">Evalu ation</option>
<option value="S">Featu re</option>
<option value="S">Perio d</option>
<option value="0">Prima ry Location</option>
<option value="0">Repet ition</option>
<option value="0">Seaso n</option>
<option value="S">Sensa tion</option>
<option value="0">Shave </option>
<option value="S">Site</option>
<option value="S">Skin Type</option>
<option value="0">Subje ct</option>
<option value="0">Tan</option>
</select></P> 2 1439
a select posts back the selected value, not the index, so in your case it
eithe '0' or 'S', wich always matches one of the first two selections. you
need unique values for each selection.
-- bruce (sqlwork.com)
"oaksong" <oa*****@hotmai l.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. . I've got a data combo with about 12 rows, of which only the first two are selectable!
I put a label on the page below the datacombo and selecteditem.te xt will populate the list when I change the selection combo for either of the first two items, but not for any of the others.
I'm using database objects to populate the Datacombo.
The code is: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load 'Put user code to initialize the page here
If Not IsPostBack Then odaParam.Fill(D sParam2) cmbParam.DataBi nd() End If
End Sub
Private Sub cmbParam_Select edIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles cmbParam.Select edIndexChanged
Label1.Text = cmbParam.Select edItem.Text
End Sub
The HTML is: <P> <select name="cmbParam" onchange="__doP ostBack('cmbPar am','')" language="javas cript" id="cmbParam"> <option value="0"> Select..</option> <option value="S">Body Location</option> <option value="S">Evalu ation</option> <option value="S">Featu re</option> <option value="S">Perio d</option> <option value="0">Prima ry Location</option> <option value="0">Repet ition</option> <option value="0">Seaso n</option> <option value="S">Sensa tion</option> <option value="0">Shave </option> <option value="S">Site</option> <option value="S">Skin Type</option> <option value="0">Subje ct</option> <option value="0">Tan</option>
</select></P>
Ok. I was missing the part about what was being posted back, but I
finally managed to finally figure that part out. I'm appending the Text
to the Value to get a unique. Not pretty, but gets me to where I want
to go. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Hmmm... |
last post by:
Is there a way to control which controls appear to be "on top". For example
a MaskEdBox shows up "on top" of a ComboBox when the 2 controls overlap, but
a MaskedBox shows up "underneath" a DataCombo when 2 controls overlap.
How can I force a MaskEdBox to show up "on top" of a DataCombo when whey
overlap? Thanks.
|
by: Nick |
last post by:
Is it possible through css to make an element in a multiple list menu
unselectable. Im organizing my list by using titles...
+-------------+
| CATEGORY 1 |
| option 1 |
| option 2 |
| option 3 |
| CATEGORY 2 |
| option 1 |
|
by: eye5600 |
last post by:
In the form designer, a ComboBox on a TabPage becomes unselectable via the
mouse. (Any attempt to interact with the ComboBox via mouse selects the
TabPage) I can select something else, and tab to it. Tab order is OK. At
runtime, all is OK. This has happened twice.
Anyone know why? Are the databindings causing confusion? (Don't know why
they would.)
|
by: oaksong |
last post by:
I've got a data combo with about 12 rows, of which only the first two
are selectable!
I put a label on the page below the datacombo and selecteditem.text
will populate the list when I change the selection combo for either of
the first two items, but not for any of the others.
I'm using database objects to populate the Datacombo.
The code is:
|
by: R |
last post by:
Hi, I'm really stuck here.
I have a data combo called cmbHvem which I link to a recordset RS23 like
this
If RS23.State = adStateOpen Then
cmbHvem.RowSource = Nothing
RS23.Close()
End If
| |
by: Bookreader |
last post by:
I'm using a datacombo box in an application.
It works fine when someone has made a selction and I use:
adodcClient.Recordset.Bookmark = dcClient.SelectedItem
MsgBox "Client Selected: " & dcClient.SelectedItem
client = adodcClient.Recordset.Fields(0).Value
clientID = adodcClient.Recordset.Fields(1).Value
When there is no client, the code generates an error as should.
|
by: Akinyemi |
last post by:
I am developing a database for a Payroll program. I store the names of employees in a DataCombo control. I use ADO to connect the fields to my Access Database.
Instead of using a Find or Search Button to look for an employee name in the database , I want to use a DataCombo control so that when the user clicks on the name of an employee or selects an employee name in the DataCombo, all the fields in respect of the employee selected shoud be...
|
by: Garg |
last post by:
Hi All,
I am facing a technical problem. I have craeated one form and in that
I have a table. in that table user can select a row and by using shift
key user can select multiple rows. this i did by changing the
background color. this works fine.
But if a user selectes one row in table and then click somewhere else
in the form with shift key. Then form get selected. I make every div
and cell in the table to be unselectable by...
|
by: hussainiyad |
last post by:
Dear All,
In my form i,v many tables for examples
1.(Table)supplier = SupId varchar(10) primary key,SupName(20)
2.(Table)Product = ItemNo varchar(10)Primary key,Descrp varchar(20),Price float,Qty int
3.(Table)Pinvoice=InvoiceNo int primary key, Pdate datetime,SupId varchar(10),SupName varchar(10),ItemNo varchar(10),Descrp varchar(20),Price int,Qty int
|
by: sunilkds |
last post by:
What is difference between datacombo box and simple combo box.
what is combox.itemdata @ datacombo box
I want complete information with example of datacombo box
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |