Reputation: 21
How I can Clean the session variable, which hold file path while load the asp page(AddFiles.aspx) first time only?
Upvotes: 2
Views: 182
Reputation: 3318
You can check for the PostBack:
if (!IsPostBack)
{
Session["yourSessionName"] = "";
}
Upvotes: 2