Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ValidateSessions();
        DataView dv  = (DataView)VenueName.Select(DataSourceSelectArguments.Empty);
        DataView dv7 = (DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty);

        Label1.Text  = (string)dv.Table.Rows[0][0];
        Label12.Text = (string)dv7.Table.Rows[0][0];
        Label3.Text  = Session["EventName"].ToString();
        Label4.Text  = ConvertMode(Session["StartTime"].ToString());
        Label5.Text  = Session["NoofHours"].ToString() + "hrs";
        Label6.Text  = ConvertMode(Session["EndTime"].ToString());
        compute();
        MembershipUser ma = Membership.GetUser();

        Session["uid"] = ma.ProviderUserKey.ToString();
        DataView dv2 = (DataView)ClientId.Select(DataSourceSelectArguments.Empty);

        cid.Text = Convert.ToString((int)dv2.Table.Rows[0][0]);
    }