protected void Button3_Click(object sender, EventArgs e) { nsdoc.clslst obj = new nsdoc.clslst(); nsdoc.clslstprp objprp = new nsdoc.clslstprp(); objprp.lstnam = TextBox4.Text; objprp.lstcrtdat = DateTime.Now; objprp.lstusrcod = Convert.ToInt32(Session["cod"]); obj.Save_Rec(objprp); TextBox4.Text = String.Empty; DropDownList1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { nsdoc.clsusr obj = new nsdoc.clsusr(); Int32 a = obj.vrfusr(Request.QueryString["eml"]); if (a == -1) { Label1.Text = "Email ID not verified"; } else { Label1.Text = "Email Verification completed."; nsdoc.clslst obj1 = new nsdoc.clslst(); nsdoc.clslstprp objprp1 = new nsdoc.clslstprp(); objprp1.lstcrtdat = DateTime.Now; objprp1.lstnam = "Root"; List <nsdoc.clsusrprp> k = obj.Find_Rec(Request.QueryString["eml"]); objprp1.lstusrcod = k[0].usrcod; obj1.Save_Rec(objprp1); } } }
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { nsdoc.clsdoc obj = new nsdoc.clsdoc(); List <nsdoc.clsdocprp> k = obj.find_rec(Convert.ToInt32(Request.QueryString["dcod"])); Label1.Text = k[0].doctit; Label2.Text = k[0].docupldat.ToShortDateString(); //Label3.Text = "share data"; Label4.Text = k[0].docdsc; if (k[0].docforsalsts == 'T') { Label5.Text = "Document on sale for Rs." + k[0].docprc.ToString(); } String path = "../docfil" + "//" + k[0].doccod.ToString() + k[0].docfil; Session["path"] = path; nsdoc.clslst obj1 = new nsdoc.clslst(); List <nsdoc.clslstprp> k1 = obj1.find_rec(k[0].doclstcod); if (k1[0].lstusrcod != Convert.ToInt32(Session["cod"])) { LinkButton1.Visible = false; } } }