P
pnr
I have an repeater that contains data witch it schould be possible to
delete, I have placed a delete button in each row, but i can't make
it work :-(
This is my repeater (just a little bit of it):
<asp:repeater id="Repeater1" runat="server"
OnItemCommand="testKnap_Click">
<ItemTemplate>
<asp:Button Text=<%# DataBinder.Eval(Container.DataItem,
"nyhedsNr") %> runat=server
ID="testKnap"></asp:Button>
</ItemTemplate>
and the cs file:
private void InitializeComponent()
{
this.Repeater1.ItemCommand += new
System.Web.UI.WebControls.RepeaterCommandEventHandler(this.testKnap_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
protected void testKnap_Click(object source,
System.Web.UI.WebControls.RepeaterCommandEventArgs e)
{
Response.Write("HERE" + e.CommandName.ToString());
}
It submits when i hit the button, but it dosen't write the text from
Response.Write..
Any one that can help me make it work?
delete, I have placed a delete button in each row, but i can't make
it work :-(
This is my repeater (just a little bit of it):
<asp:repeater id="Repeater1" runat="server"
OnItemCommand="testKnap_Click">
<ItemTemplate>
<asp:Button Text=<%# DataBinder.Eval(Container.DataItem,
"nyhedsNr") %> runat=server
ID="testKnap"></asp:Button>
</ItemTemplate>
and the cs file:
private void InitializeComponent()
{
this.Repeater1.ItemCommand += new
System.Web.UI.WebControls.RepeaterCommandEventHandler(this.testKnap_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
protected void testKnap_Click(object source,
System.Web.UI.WebControls.RepeaterCommandEventArgs e)
{
Response.Write("HERE" + e.CommandName.ToString());
}
It submits when i hit the button, but it dosen't write the text from
Response.Write..
Any one that can help me make it work?