Hi
When i save / update record value in SaveMethod is null.
public string SaveMethod;
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!Page.IsPostBack)
{
hdfLoginCode.Value = Utility.GetUserInfo().Item4;
if (!String.IsNullOrEmpty(Request.QueryString["val"]))
{
GetData(Convert.ToInt32(AES.Decrypt(Request.QueryString["val"])));
}
if (!String.IsNullOrEmpty(Request.QueryString["AU"]))
{
SaveMethod = Request.QueryString["AU"];
if (SaveMethod == "A")
{
btnSubmit.Text = "Save";
}
}
else
{
Response.Redirect("QuestionList");
}
}
}
catch (Exception ex)
{
Utility.SaveErrorLog(ex.Message, System.IO.Path.GetFileName(Request.Path), System.Reflection.MethodBase.GetCurrentMethod().Name, Convert.ToInt32(hdfLoginCode.Value));
ShowMessage("Oops...", ex.Message, "error");
}
}
**********************************************
protected void btnSubmit_Click(object sender, EventArgs e)
{
try
{
if (SaveMethod == "U")
{
}
}
}
Thanks