Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        UTLUtilities.CL_ActiveModule = 7;
        this.CheckUserSession();
        this.Page.Header.Title = "www.apnerdeal.com ";
        this.CheckQueryString();
        if (!Page.IsPostBack)
        {
            string strSku = this.Get_Last_ProfileSpecificSKU(intProfileID, _ClassifiedSeller);
            this.Generate_ProfileSpecific_UniqueSKU(strSku);
            this.LoadRecord_Category();
            if (CategoryID > 0 && SubcategoryID > 0)
            {
                ddlCategory.SelectedValue = CategoryID.ToString();
                this.LoadRecord_Subcategory(CategoryID);
                ddlSubcategory.SelectedValue = SubcategoryID.ToString();
                this.LoadRecord_2ndSubcategory(CategoryID, SubcategoryID);

                if (CategoryID == 1 || CategoryID == 8)
                {
                    pnlModel.Visible = false;
                    pnlModel.Enabled = false;
                }
                else
                {
                    pnlModel.Visible = true;
                    pnlModel.Enabled = true;
                }
            }
        }
    }
Пример #2
0
 protected void repProvince_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (LinkClicked != null)
     {
         MenuEventArgs mnuEvent = new MenuEventArgs();
         mnuEvent.CategoryID    = CategoryID.ToString();
         mnuEvent.SubcategoryID = SubcategoryID.ToString();
         mnuEvent.ProvinceID    = e.CommandArgument.ToString();
         this.LinkClicked(this, mnuEvent);
     }
 }
 protected void repList_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (LinkClicked != null)
     {
         MenuEventArgs mnuEventArgs = new MenuEventArgs();
         mnuEventArgs.SecondSubcatID = e.CommandArgument.ToString();
         mnuEventArgs.CategoryID     = CategoryID.ToString();
         mnuEventArgs.SubcategoryID  = SubcategoryID.ToString();
         this.LinkClicked(this, mnuEventArgs);
     }
 }
    protected void repCorporateSeller_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        LinkButton btn = (LinkButton)e.Item.FindControl("lbtnCorporateSeller");

        if (LinkClicked != null)
        {
            MenuEventArgs mnuEventArgs = new MenuEventArgs();
            mnuEventArgs.ProfileID     = e.CommandArgument.ToString();
            mnuEventArgs.CategoryID    = CategoryID.ToString();
            mnuEventArgs.SubcategoryID = SubcategoryID.ToString();
            this.LinkClicked(this, mnuEventArgs);
        }
    }