I am check the condition with query string, now my requriment is if query string in not null means session has to save into hidden field value if (Request.QueryString["flagArchived"] != null) { FlagArchived = 0; Session["flagArchivedSet"] = FlagArchived; } else { FlagArchived = 1; Session["flagArchivedSet"] = FlagArchived; } }
how to store sessionvalue into Hidden Field.
<asp:HiddenField ID="hiddenFieldArchived" runat="server" />
after saving session value into hidden value now I need to check the condition. If(){ DataSet dsData = PatientLogManager.GetPatientLogDetailedDataArchived(filter); } Else { DataSet dsData = PatientLogManager.GetPatientLogDetailedDataArchived(filter); }
How to check the condition with Hidden Field value.

Go to the complete details ...