Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //string str;
        //str = Session["id"].ToString();
        int id = Convert.ToInt32(Session["id"]);
        bll selview = new bll();
        Hashtable data = new Hashtable();
        data = selview.sel3vendorbyid(id);
        txtvendorid.Text = data["vendorid"].ToString();
        txtcmpname.Text = data["cmpname"].ToString();
        txtadrs.Text = data["adrs"].ToString();
        txtphoneno.Text = data["phoneno"].ToString();
        txtemailid.Text = data["emailid"].ToString();
        txtservingarea.Text = data["servingarea"].ToString();
        txtname1.Text = data["p1name"].ToString();
        txtphoneno1.Text = data["p1phoneno"].ToString();
        txtdesc1.Text = data["p1desc"].ToString();
        txtname2.Text = data["p2name"].ToString();
        if ((data["p2name"].ToString()) != "")
        {
            txtphoneno2.Text = data["p2phoneno"].ToString();

        }
        txtdesc2.Text = data["p2desc"].ToString();
        txtname3.Text = data["p3name"].ToString();
        if ((data["p3name"].ToString()) != "")
        {
            txtphoneno3.Text = data["p3phoneno"].ToString();

        }
        txtdesc3.Text = data["p3desc"].ToString();
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string str4;
        str4 = Request.QueryString["mfg"];
         string mfg = (str4).ToString();
        string str5;
        str5 = Request.QueryString["clientid"];
        int id = Convert.ToInt32 ( str5 );
        int v;
        bll man = new bll();
        v=man.vendorid(mfg);

        bll clsel = new bll();

        Hashtable insertdata = new Hashtable();
        insertdata = clsel.selclientdet(id);

        txtorgnameup.Text = insertdata["org_name"].ToString();
        txtadrsup.Text = insertdata["address"].ToString();
        txtemaildidup.Text = insertdata["emailid"].ToString();
        txtorgtypeup.Text = insertdata["orgtype"].ToString();
        txtphonenoup.Text = insertdata["phoneno"].ToString();

        bll selview = new bll();
        Hashtable data = new Hashtable();
        data = selview.sel3vendorbyid(v);
        txtvendorid.Text = data["vendorid"].ToString();
        txtcmpname.Text = data["cmpname"].ToString();
        txtadrs.Text = data["adrs"].ToString();
        txtphoneno.Text = data["phoneno"].ToString();
        txtemailid.Text = data["emailid"].ToString();
        txtservingarea.Text = data["servingarea"].ToString();
        txtname1.Text = data["p1name"].ToString();
        txtphoneno1.Text = data["p1phoneno"].ToString();
        txtdesc1.Text = data["p1desc"].ToString();
        txtname2.Text = data["p2name"].ToString();
        if ((data["p2name"].ToString()) != "")
        {
            txtphoneno2.Text = data["p2phoneno"].ToString();

        }
        txtdesc2.Text = data["p2desc"].ToString();
        txtname3.Text = data["p3name"].ToString();
        if ((data["p3name"].ToString()) != "")
        {
            txtphoneno3.Text = data["p3phoneno"].ToString();

        }
        txtdesc3.Text = data["p3desc"].ToString();
        TabContainer1.Visible = true;
    }
Exemple #3
0
    protected void LinkButton1_Click1(object sender, EventArgs e)
    {
        string str;
        str = Request.QueryString["vdid"];
        int id = Convert.ToInt32(str);
        bll selview = new bll();
        Hashtable data = new Hashtable();
        data = selview.sel3vendorbyid(id);
        txtvendorid.Text = data["vendorid"].ToString();
        txtcmpname.Text = data["cmpname"].ToString();
        txtadrs.Text = data["adrs"].ToString();
        txtphoneno.Text = data["phoneno"].ToString();
        txtemailid.Text = data["emailid"].ToString();
        txtservingarea.Text = data["servingarea"].ToString();
        txtname1.Text = data["p1name"].ToString();
        txtphoneno1.Text = data["p1phoneno"].ToString();
        txtdesc1.Text = data["p1desc"].ToString();
        txtname2.Text = data["p2name"].ToString();
        if ((data["p2name"].ToString()) != "")
        {
            txtphoneno2.Text = data["p2phoneno"].ToString();

        }
        txtdesc2.Text = data["p2desc"].ToString();
        txtname3.Text = data["p3name"].ToString();
        if ((data["p3name"].ToString()) != "")
        {
            txtphoneno3.Text = data["p3phoneno"].ToString();

        }
        txtdesc3.Text = data["p3desc"].ToString();
        TabContainer1.Visible = true;
        btnupdate.Visible = true;
        btndel.Visible = true;
        btndel0.Visible = true;
    }