Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. public partial class Register : System.Web.UI.Page{
  2.  
  3. public string ID, Pass, Email, BDYear, BDMonth, BDDay, FullName;
  4. SqlCommand cmd;
  5. SqlConnection con;
  6. SqlDataAdapter da;
  7. protected void Page_Load(object sender, EventArgs e)
  8. {
  9.  
  10.  
  11. if (IsPostBack){
  12.  
  13. ID = Request.Form["ID"];
  14. Pass = Request.Form["PW"];
  15. Email = Request.Form["EMAIL"];
  16. BDYear = Request.Form["BDYear"];
  17. BDMonth = Request.Form["BDMonth"];
  18. BDDay = Request.Form["BDDay"];
  19. FullName = Request.Form["FullName"];
  20.  
  21. cmd = new SqlCommand("INSERT INTO UserInfo (ID, Pass, Email, BDYear, BDMonth, BDDay, FullName) VALUES (ID, Pass, Email,BDYear, BDMonth, BDDay, FullName)");
  22.  
  23. }
  24.  
  25. }
  26.  
  27. cmd = new SqlCommand("INSERT INTO UserInfo (ID, Pass, Email, BDYear, BDMonth, BDDay, FullName) VALUES ("+ID+", "+Pass+", "+Email+","+BDYear+", "+BDMonth+", "+BDDay+", "+FullName+")");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement