protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             cid    = Session["Value"].ToString().Split('@')[0];
             status = Session["Value"].ToString().Split('@')[1];
         }
         catch (Exception ex)
         {
             Response.Redirect("~/GlobalForm/StartPage.aspx");
         }
         l = loan.FindLoan2ByClientId(cid);
         fill();
         visabaleStep("1", "");
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             cid    = Session["Value"].ToString().Split('@')[0];
             status = Session["Value"].ToString().Split('@')[1];
         }
         catch (Exception ex)
         {
             Response.Redirect("~/GlobalForm/StartPage.aspx");
         }
         l = loan.FindLoan2ByClientId(cid);
         fill();
         visabaleStep("1", "", "");
         if (status == "Client")
         {
             downloadDoc.Visible = false;
             Send.Visible        = false;
             Finish.Visible      = false;
             com1.Attributes.Add("readonly", "readonly");
             com2.Attributes.Add("readonly", "readonly");
             com3.Attributes.Add("readonly", "readonly");
             com4.Attributes.Add("readonly", "readonly");
             com5.Attributes.Add("readonly", "readonly");
         }
         else
         {
             Submit.Visible = false;
             if (l.Source)
             {
                 downloadS.Visible = true;
             }
         }
     }
 }