Guest User

Untitled

a guest
Jul 17th, 2019
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7.  
  8. namespace MyFirstWebApp
  9. {
  10. public partial class index : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14.  
  15. }
  16.  
  17. protected void btnClear_Click(object sender, EventArgs e)
  18. {
  19. txtMessage.Text = "";
  20. lblMessage.Text = "";
  21. txtMessage.Focus();
  22. }
  23.  
  24. protected void btnDisplayMessage_Click(object sender, EventArgs e)
  25. {
  26. lblMessage.Text = "Your message is <b>" + txtMessage.Text + "</b>.";
  27. }
  28. }
  29. }
RAW Paste Data