-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContact.aspx.cs
More file actions
35 lines (33 loc) · 989 Bytes
/
Contact.aspx.cs
File metadata and controls
35 lines (33 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace WebFormsSample
{
public partial class Contact : Page
{
protected string FullName { get; set; }
protected string Email { get; set; }
protected string Message { get; set; }
protected string Phone { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
FullName = Request.Form["Fullname"];
Email = Request.Form["Email"];
Message = Request.Form["Message"];
Phone = Request.Form["Phone"];
if (!string.IsNullOrWhiteSpace(FullName) && !string.IsNullOrWhiteSpace(Email) && !string.IsNullOrWhiteSpace(Message) && !string.IsNullOrWhiteSpace(Phone))
{
this.pnlForm.Visible = false;
this.pnlSubmitted.Visible = true;
}
}
}
}
}