fork download
  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. public partial class index : System.Web.UI.Page
  9. {
  10. protected void Page_Load(object sender, EventArgs e)
  11. {
  12. }
  13.  
  14. protected void btnSubmitForm_Click(object sender, EventArgs args)
  15. {
  16. //Retrieve the text from the textboxes
  17. //Assign the text to label to show submitted data
  18.  
  19. t;
  20. lblLastName.Text = txtLa lblFirstName.Text = txtFirstName.TexstName.Text;
  21. lblEmail.Text = txtEmail.Text;
  22. }
  23.  
  24. protected void btnClearForm_Click(object sender, EventArgs args)
  25. {
  26. //Clear the text in Text fields and labels.
  27. ClearFields();
  28. }
  29.  
  30. private void ClearFields()
  31. {
  32. lblPARTNUMBER.Text = string.Empty;
  33. txtPARTNUMBER.Text = string.Empty;
  34. lblSERIALNUMBER.Text = string.Empty;
  35. txtSERIALNUMBER.Text = string.Empty;
  36. lblETPARTNUMBER.Text = string.Empty;
  37. txtETPARTNUMBER.Text = string.Empty;
  38. lblDESCRIPTION.Text = string.Empty;
  39. txtDESCRIPTION.Text = string.Empty;
  40. lblTYPEOFTESTEQUIPMENTREQUIRED.Text = string.Empty;
  41. txtTYPEOFTESTEQUIPMENTREQUIRED.Text = string.Empty;
  42. }
  43. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
using System;
^
Main.java:2: error: class, interface, or enum expected
using System.Collections.Generic;
^
Main.java:3: error: class, interface, or enum expected
using System.Linq;
^
Main.java:4: error: class, interface, or enum expected
using System.Web;
^
Main.java:5: error: class, interface, or enum expected
using System.Web.UI;
^
Main.java:6: error: class, interface, or enum expected
using System.Web.UI.WebControls;
^
Main.java:8: error: class, interface, or enum expected
public partial class index : System.Web.UI.Page
       ^
Main.java:8: error: '{' expected
public partial class index : System.Web.UI.Page
                          ^
Main.java:19: error: not a statement
       t;
       ^
Main.java:20: error: ';' expected
        lblLastName.Text = txtLa lblFirstName.Text = txtFirstName.TexstName.Text;
                                ^
10 errors
stdout
Standard output is empty