Hi,
I am facing an issue. I am runing only insert query on button click and after my query execution i am redirecting to an other page. But page is remains in loading state. while data has been insert into database. I don't know what's wrong with this.
private void Save()
{
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
userName = userName.Replace("CCI\\", "");
List<vcldbConnectivity> objuser = new vcldbConnectivity().Get_EmployeeCode(" WHERE [Active Directory] = '" + userName + "'");
Int32 TerritoryID = 0;
DataTable dtTerr = new Model().getData("SELECT Top 1 * FROM [tblLocation] WHERE [loc_Name]='" + objuser[0].Employee_Territory + "'");
if (dtTerr.Rows.Count > 0)
{
TerritoryID = Convert.ToInt32(dtTer ...
Go to the complete details ...