Guest User

Untitled

a guest
Jan 20th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <asp:TextBox runat="server" ID="uid" AutoPostBack="True" Text=""></asp:TextBox>
  2.  
  3. protected void Page_Load(object sender, EventArgs e)
  4. {
  5. if(IsPostBack && uid.Text != "" && pw.Text == "")
  6. {
  7. Do stuff
  8. }
  9. }
  10.  
  11. <asp:TextBox runat="server" ID="uid" Text="" AutoPostBack="True" OnTextChanged="UidTextChanged"></asp:TextBox>
  12.  
  13. protected void UidTextChanged(object sender, EventArgs e)
  14. {
  15. ClientScript.RegisterStartupScript(GetType(), "alert", "alert('it works');", true);
  16. }
  17.  
  18. <asp:TextBox runat="server" ID="uid" AutoPostBack="True" Text="" onblur="__doPostBack('','');" OnTextChanged="UidTextChanged"></asp:TextBox>
  19.  
  20. <asp:TextBox runat="server" ID="uid" AutoPostBack="True" Text="" onblur="__doPostBack('','');"></asp:TextBox>
  21.  
  22. "Uncaught TypeError: Property 'submit' of object #<HTMLFormElement> is not a function
  23. __doPostBack
  24. (anonymous function)"
  25.  
  26. <asp:TextBox runat="server" ID="uid" AutoPostBack="True" Text="" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
  27.  
  28. protected void TextBox1_TextChanged(object sender, System.EventArgs e) {
  29. .....
  30. }
Add Comment
Please, Sign In to add comment