javierpdx
asked on
!IsPostack submitting data to SQL with .net c# application
Hello,
I'm trying to understand !IsPostback.
Should I be using if(!IsPostBack) after a button click before submitting data to a SQL database like the following?
Thank you!
I'm trying to understand !IsPostback.
Should I be using if(!IsPostBack) after a button click before submitting data to a SQL database like the following?
protected void btn101_Click(object sender, EventArgs e)
{
if (!IsPostBack)
{
//insert into statement
}
}
Could this help prevent duplicate data entries which I have seen occasionally?Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER