session variable asp.net
How I can Clean the session variable, which h开发者_Python百科old file path while load the asp page(AddFiles.aspx) first time only?
if (!IsPostback)
{
Session["FilePath"] = null;
}
You can check for the PostBack:
if (!IsPostBack)
{
Session["yourSessionName"] = "";
}
精彩评论