예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Tokenrequest rw = new Tokenrequest();

        Tokenrequest qw = new Tokenrequest();

        qw = rw.getAlldatavianame((string)Session["usernameLogin"]);


        if (qw != null)
        {
            Button1.Enabled  = false;
            Button1.CssClass = "btn btn-default";
            Button1.Text     = "Request sent!";
        }
    }
예제 #2
0
    protected void Button1_OnClick(object sender, EventArgs e)
    {
        Tokenrequest rw = new Tokenrequest();

        Tokenrequest qw = new Tokenrequest();

        qw = rw.getAlldatavianame((string)Session["usernameLogin"]);


        if (qw == null)
        {
            //do mtd
            string username  = (string)Session["usernameLogin"];
            string addressss = HiddenFieldtosendaddress.Value;

            Tokenrequest trq = new Tokenrequest();
            trq.TokenInsert(username, addressss);

            Response.Redirect("requestofnewToekn.aspx");
        }
    }