I check using web service that we can invoke. So, i use web method at code behind like below
[WebMethod]
public static string ReceiveWebService(string type_list, string type_accom)
{
return string.Format("Thank you ,{0} number of rows inserted!", rowsInserted);
}
and check user session at load like below
if (Session["user"] == "Abhijit")
{
}
else
{
Response.Redirect("Login.aspx");
}
is this process secure?