public void ShowConnectionDetails()
    {
        objDistributor.UserId = Convert.ToInt32(Session["ConsumerId"]);
        DataSet ds = objDistributor.ShowConnectionDetailsByuser();

        if (ds.Tables[0].Rows.Count > 0)
        {
            DataRow dr = ds.Tables[0].Rows[0];
            Session["AgentId"] = dr["AgentId"].ToString();
        }
    }
Esempio n. 2
0
    public void call()
    {
        clsDistributor objDistributor = new clsDistributor();

        objDistributor.UserId = Convert.ToInt32(Session["ConsumerId"]);
        DataSet ds = objDistributor.ShowConnectionDetailsByuser();

        if (ds.Tables[0].Rows.Count > 0)
        {
            DataRow dr = ds.Tables[0].Rows[0];
            Session["AgentId"] = dr["AgentId"].ToString();
        }
        lblUserName.Text = Session["UserName"].ToString();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        clsDistributor objDistributor = new clsDistributor();

        objDistributor.UserId = Convert.ToInt32(Session["ConsumerId"]);
        DataSet ds = objDistributor.ShowConnectionDetailsByuser();

        if (ds.Tables[0].Rows.Count > 0)
        {
            DataRow dr = ds.Tables[0].Rows[0];
            Session["AgentId"] = dr["AgentId"].ToString();
        }
        lblUserName.Text = Session["UserName"].ToString();
    }
Esempio n. 4
0
    public void ShowConnectionDetails()
    {
        objDistributor.UserId = Convert.ToInt32(Session["ConsumerId"]);
        DataSet ds = objDistributor.ShowConnectionDetailsByuser();

        if (ds.Tables[0].Rows.Count > 0)
        {
            DataRow dr = ds.Tables[0].Rows[0];
            //lblConsumerNo.Text = dr["ConsumerNo"].ToString();
            //lblConsumerName.Text = dr["ConsumerName"].ToString();
            //lblConnectionName.Text = dr["ConnectionName"].ToString();
            //lblDate.Text = dr["AppliedDate"].ToString();
            //lblIssuedDate.Text = dr["IssuedDate"].ToString();
            //lblAgencyName.Text = dr["AgencyName"].ToString();
            //lblAddress.Text = dr["Address"].ToString();
            Session["AgentId"] = dr["AgentId"].ToString();
        }
    }