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_SelectedIn dexChanged".
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!
"Raterus" <ra*****@spam.org> wrote in message
news:Or*************@TK2MSFTNGP11.phx.gbl...
you don't need this statement if you are using codebehind/handles
OnSelectedIndexChanged="cboProReference_SelectedIn dexChanged"
or any other statements that reference codebehind methods like that. That
is used when you use <script runat="server"> ... </script>
"Daniel" <so*****@yahoo.com> wrote in message
news:u3**************@TK2MSFTNGP10.phx.gbl...
Yes, i do
Public Sub cboProReference_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cboProReference.SelectedIndexChanged
.....
and i still make the autopostback="true"
OnSelectedIndexChanged="cboProReference_SelectedIn dexChanged"
"Trevor Benedict R" <tr********@yahoo.com> wrote in message
news:0A**********************************@microsof t.com... See if the Sub Routine is wired to the Event (at the end of the Procedur
e Declaration you should see a Handles Clause. See if this is pointing to
the correct Control.
HTH
Trevor Benedict R
MCSD