Hi this is the OP.
Here is the code:
//********** ASPX Markup ****************
<asp:GridView ID="gvCRCSearch" runat="server"
AutoGenerateColumns="False" EnableViewState="False"
DataKeyNames="ApplicantID">
<Columns>
<asp:BoundField DataField="FirstName" HeaderText="First Name" />
<asp:BoundField DataField="MiddleName" HeaderText="Middle" />
<asp:BoundField DataField="LastName" HeaderText="Last Name" />
<asp:BoundField DataField="DOB" DataFormatString="{0:MM/dd/yyyy}"
HeaderText="DOB" HtmlEncode="False" />
<asp:BoundField DataField="PrimaryPhone" HeaderText="Prim. Phone" /
>
<asp:BoundField DataField="Ethnicity" HeaderText="Ethnicity" />
<asp:BoundField DataField="SubmitDate" DataFormatString="{0:MM/dd/
yyyy}" HeaderText="Submit Date" HtmlEncode="False" />
<asp:TemplateField HeaderText="Hired?">
<ItemTemplate>
<asp:DropDownList ID="ddlHired" runat="server"
AutoPostBack="True"
OnSelectedIndexChanged="ddlHired_SelectedIndexChan ged" >
<asp:ListItem Value="False">No</asp:ListItem>
<asp:ListItem Value="True">Yes</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
//******** CS code **************
protected void ddlHired_SelectedIndexChanged(object sender, EventArgs
e) {
Trace.Warn("I'm here");
}
On Sep 15, 10:22*am, aamir <aamirghan...@gmail.comwrote:
Hello, I guess the subject line says it all. I have put Trace.Warn()
in the SelectedIndexChanged event handler, but it does not get listed
when the trace is on for that page. I have AutoPostback = True for
that Dorpdownlist as well. What could be I missing. Any leads will be
helpful.
Thanks in advance!