Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         LoadCountryList countrys = new LoadCountryList();
         ddlnationality.DataSource = countrys.CountryList();
         ddlnationality.DataBind();
         ddlnationality.Items.FindByValue("Singapore").Selected = true;
         DOBfillup();
         EventID    = int.Parse(Request.QueryString["EventID"]);
         EventTitle = Request.QueryString["EventTitle"];
         // EventID = 5;
         //EventTitle = "Testing Event";
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         EventID    = Int32.Parse(Session["eid"].ToString());
         EventTitle = Session["eventTitle"].ToString();
     }
     catch (NullReferenceException nre)
     {
         Response.Redirect("Events.aspx");
     }
     if (!IsPostBack)
     {
         LoadCountryList countrys = new LoadCountryList();
         ddlnationality.DataSource = countrys.CountryList();
         ddlnationality.DataBind();
         ddlnationality.Items.FindByValue("Singapore").Selected = true;
         DOBfillup();
         //EventID = 5;
         //EventTitle = "Testing Event";
     }
 }