RepeaterItemEventHandler

    Date: 09/27/07 (C Sharp)    Keywords: web

    hello the mighty c# developers! so far so good!

    I have Repeater with LinkButton

    'runat="server" ID="CancelAutorenewLinkbutton">
                                            Cancel Autorenew
                                       




    I want this LinkButton to activate the following function

    private void CancelAutorenewLinkbutton_click(object sender, RepeaterCommandEventArgs e)
    {
    int PurchaseID = Int32.Parse(e.CommandArgument.ToString());
    Purchase curPurchase = PaymentManager.GetPurchase(PurchaseID);
    }

    but I don't know how to register it
    I've tried adding to InitializeComponent
    this.CancelAutorenewLinkbutton.Command += new System.Web.UI.WebControls.CommandEventHandler(CancelAutorenewLinkbutton_click);

    but it doesn't work. I'm getting compilation error. Do you know how to do it?hello the mighty c# developers!

    Source: http://community.livejournal.com/csharp/86055.html

« Dynamic Detection? || debugger caching? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home