AW.Portal.ProductBrowser.DataList1_ItemCommand C# (CSharp) Метод

DataList1_ItemCommand() защищенный Метод

protected DataList1_ItemCommand ( object source, DataListCommandEventArgs e ) : void
source object
e DataListCommandEventArgs
Результат void
        protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
        {
            if (e.CommandName == "view")
            {

                int i = Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex]);
                ProductDescri.GetDesc(i);
                ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup();", true);
            }
            else
            {
                int listvalue = Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex]);

                ProductOrderPage.GetDesc(listvalue);
                ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowProductOrder();", true);

            }
        }