aakash2310

FEEDBACK-cs

Jan 20th, 2022
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.87 KB | None | 0 0
  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 WebApplication1
  9. {
  10.     public partial class WebForm1 : System.Web.UI.Page
  11.     {
  12.         protected void Page_Load(object sender, EventArgs e)
  13.         {
  14.             ValidationSettings.UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
  15.         }
  16.  
  17.         protected void Button1_Click(object sender, EventArgs e)
  18.         {
  19.             Label7.Text = "Thanks for your feedback " + DropDownList1.SelectedValue.ToString() + TextBox1.Text;
  20.         }
  21.  
  22.         protected void Button2_Click(object sender, EventArgs e)
  23.         {
  24.             TextBox1.Text = " ";
  25.             TextBox2.Text = " ";
  26.             TextBox3.Text = " ";
  27.             TextBox4.Text = " ";
  28.             TextBox5.Text = " ";
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment