开发者

session variable asp.net

开发者 https://www.devze.com 2023-03-04 18:31 出处:网络
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)

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"] = "";
}
0

精彩评论

暂无评论...
验证码 换一张
取 消