예제 #1
0
        protected void Generate_OTP()
        {
            MySqlConnection dbconn = new MySqlConnection(CommonClass.connectionstring);

            dbconn.Open();
            Repeater lMobileNumberRepeater = User_FormView.FindControl("Mobile_Number_Repeater") as Repeater;

            UserClass.Generate_OTP(Server.HtmlEncode((User_FormView.FindControl("Mobile_Number") as TextBox).Text),
                                   Server.HtmlEncode((User_FormView.FindControl("User_Name") as TextBox).Text),
                                   User_FormView.FindControl("OTP_Message") as Label,
                                   User_FormView.FindControl("Mobile_PlaceHolder") as PlaceHolder,
                                   dbconn);
            Bind_Contacts("1", dbconn, lMobileNumberRepeater);
            dbconn.Close();
        }