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.Data Item,
"nyhedsNr") %> runat=server
ID="testKnap"> </asp:Button>
</ItemTemplate>
and the cs file:
private void InitializeCompo nent()
{
this.Repeater1. ItemCommand += new
System.Web.UI.W ebControls.Repe aterCommandEven tHandler(this.t estKnap_Click);
this.Load += new System.EventHan dler(this.Page_ Load);
}
protected void testKnap_Click( object source,
System.Web.UI.W ebControls.Repe aterCommandEven tArgs e)
{
Response.Write( "HERE" + e.CommandName.T oString());
}
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?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
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.Data Item,
"nyhedsNr") %> runat=server
ID="testKnap"> </asp:Button>
</ItemTemplate>
and the cs file:
private void InitializeCompo nent()
{
this.Repeater1. ItemCommand += new
System.Web.UI.W ebControls.Repe aterCommandEven tHandler(this.t estKnap_Click);
this.Load += new System.EventHan dler(this.Page_ Load);
}
protected void testKnap_Click( object source,
System.Web.UI.W ebControls.Repe aterCommandEven tArgs e)
{
Response.Write( "HERE" + e.CommandName.T oString());
}
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?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
Comment