Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack == false)
     {
         Educom.clsles           obj = new Educom.clsles();
         List <Educom.clslesprp> k   = obj.find_rec(Convert.ToInt32
                                                        (Request.QueryString["lcod"]));
         Label1.Text = k[0].lestit;
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack == false)
     {
         if (Request.QueryString["lcod"] == null)
         {
             Response.Redirect("frmdshbrd.aspx");
         }
         else
         {
             Educom.clsles           obj = new Educom.clsles();
             List <Educom.clslesprp> k   = obj.find_rec(Convert
                                                        .ToInt32(Request.QueryString["lcod"]));
             Label2.Text   = k[0].lestit;
             Literal1.Text = k[0].lesdsc;
             String fn;
             fn            = "../lesfil/" + k[0].lescod + k[0].lesfil;
             Session["fn"] = fn;
         }
     }
 }