G
Guest
hello, this is my front end script
<begin>
<aspataGrid id="dgAnn" runat="server" Width="100%"
AutoGenerateColumns="False" datakeyfield="Anncement_Id"
OnSelectedIndexChanged="getSelected">
</end>
.... notice i have a onselectedindexchange and in my code behind i have a
getSelected <below> wheni click on
<begin>
<asp:TemplateColumn HeaderText="Title" HeaderStyle-CssClass="row_hdr">
<ItemTemplate>
<asp:LinkButton ID="lnkAnn" Runat="server" text='<%#
DataBinder.Eval(Container.DataItem, "title") %>'/>
</ItemTemplate>
</asp:TemplateColumn>
<end>
it wont freaking fire. why?
protected void getSelected(Object src, EventArgs e)
{
string id = dgAnn.DataKeyField[dgAnn.SelectedIndex].ToString();
Response.Write(id);
}
<begin>
<aspataGrid id="dgAnn" runat="server" Width="100%"
AutoGenerateColumns="False" datakeyfield="Anncement_Id"
OnSelectedIndexChanged="getSelected">
</end>
.... notice i have a onselectedindexchange and in my code behind i have a
getSelected <below> wheni click on
<begin>
<asp:TemplateColumn HeaderText="Title" HeaderStyle-CssClass="row_hdr">
<ItemTemplate>
<asp:LinkButton ID="lnkAnn" Runat="server" text='<%#
DataBinder.Eval(Container.DataItem, "title") %>'/>
</ItemTemplate>
</asp:TemplateColumn>
<end>
it wont freaking fire. why?
protected void getSelected(Object src, EventArgs e)
{
string id = dgAnn.DataKeyField[dgAnn.SelectedIndex].ToString();
Response.Write(id);
}