Thanks, Raterus
Below is my dropdownlist:
<asp:dropdownlist id="cboProReference" style="Z-INDEX: 107; LEFT: 137px;
POSITION: absolute; TOP: 80px" tabIndex="1" runat="server" Font-Size="8pt"
Font-Names="Tahoma" Width="322px" AutoPostBack="True">
</asp:dropdownlist>
I erase the
OnSelectedIndexChanged="cboProReference_SelectedIndexChanged".
And the code behind is:
Private Sub cboProReference_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cboProReference.SelectedIndexChanged
txtPCSProjectName.Text = ""
Dim strProtocol As String
strProtocol = cboProReference.SelectedItem.Text
'get the protocol name
Dim anArray() As String
anArray = strProtocol.Split("|"c)
strProtocol = anArray(0)
'go to the database to get the pcs_protocol_ref according to protocol_ref
Dim dl As New WebRandDataLayer
txtPCSProjectName.Text = dl.GetPCSForProtocol(strProtocol)
End Sub
The bad thing is that it is still not fire up. Is anyother possible problem
here?
Thanks again!
you don't need this statement if you are using codebehind/handles
OnSelectedIndexChanged="cboProReference_SelectedIndexChanged"
or any other statements that reference codebehind methods like that. That
is used when you use <script runat="server"> ... </script>