Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer-encoding: chunked23d 214a

Status
Not open for further replies.

Reinout

IS-IT--Management
Feb 22, 2004
48
BE
Sometimes I get this "error" (It just shows up in my screen, but the ddl's are still working) when I select an item in my Dropdownlist. Most of the time it doesn't though. Anyone has had this problem before?

Code:
private Sub VeranderBrouwer(obj as OBject, e as Eventargs)

dim i,j as integer
'get Brouwer-ID of other table
i=ddlBier.SelectedIndex
ddlBierBrouwer.SelectedIndex = i
j = ddlBierBrouwer.SelectedItem.Value
'select item with right Brouwer-ID
ddlBrouwers.clearselection()
ddlBrouwers.Items.findbyvalue(j).selected = true

end sub

...

<TD colSpan="5"><asp:dropdownlist id="ddlBier" runat="server" Width="200px" AutoPostBack="True" DataValueField="bier_id" DataTextField="naam" OnSelectedIndexChanged="VeranderBrouwer" tabIndex="3"></asp:dropdownlist></TD>
<TD colSpan="7"><asp:dropdownlist id="ddlBierBrouwer" Visible="False" runat="server" Width="10px" DataValueField="brouwer_id"></asp:dropdownlist></TD>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top