I
ilovreko
I have a problem with ItemCommand event - it just wont fire. I've been
looking for a solution but couldn't find any that works for me.
Here's the code I'm using:
-- .aspx
....
<asp:Repeater id="rptPostaPrim" runat="server">
</asp:Repeater>
</form>
-- </body>
codebehind file
Page_Load
{
if (!IsPostBack)
{
//DataBind Repeater
}
}
InitilizeComponent
this.rptPostaPrim += new
System.Web.UI.WebControls.RepeaterCommandEventHandler(this.rptPostaPrim_ItemCommand);
protected void rptPostaPrim_ItemCommand(object source,
System.Web.UI.WebControls.RepeaterCommandEventArgs e)
{
//Do something
}
So, rptPostaPrim_ItemCommand method does not execute... Page and
Repeater have viewstate enabled. Any ideas anyone???
looking for a solution but couldn't find any that works for me.
Here's the code I'm using:
-- .aspx
....
<asp:Repeater id="rptPostaPrim" runat="server">
</asp:Repeater>
</form>
-- </body>
codebehind file
Page_Load
{
if (!IsPostBack)
{
//DataBind Repeater
}
}
InitilizeComponent
this.rptPostaPrim += new
System.Web.UI.WebControls.RepeaterCommandEventHandler(this.rptPostaPrim_ItemCommand);
protected void rptPostaPrim_ItemCommand(object source,
System.Web.UI.WebControls.RepeaterCommandEventArgs e)
{
//Do something
}
So, rptPostaPrim_ItemCommand method does not execute... Page and
Repeater have viewstate enabled. Any ideas anyone???