protected void btnVerify_Click(object sender, EventArgs e) { bool b; b = DBComponent.checkverificationcode(txtunm.Text, txtVcd.Text.Trim()); if (b) { string pwd = DBComponent.GeneratePassword(); SMS sobj = (SMS)Application["SmsObject"]; sobj.sendSMS(txtMbno.Text, "oPas : "******"Password Sent To Your Mobile , Use It For Future Login By Sending It As SMS"; } else { lblMsg.Text = "Please Specify Correct Verication Code as Received Through SMS"; } }