Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public class User
{
public string FirstName;
public string LastName;
public User()
{
this.FirstName = String.Empty;
this.LastName = String.Empty;
}
}
/* Class-scope variables */
private User m_oUser;
public void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
/*...[sql query stuff here]...*/
m_oUser = new User();
m_oUser.FirstName = (string)[DataView][0]["FirstNameColumn"];
m_oUser.LastName = (string)[DataView][0]["LastNameColumn"];
}
}
private bool HasChanged()
{
User _oUser = new User();
_oUser.FirstName = txt_firstName.Text;
_oUser.LastName = txt_lastName.Text;
return _oUser.Equals(this.user);
}