开发者

how to store value of session into a variable

开发者 https://www.devze.com 2022-12-19 17:00 出处:网络
Thanks a lot to all for helping me ... Plz some one tell me .. How to assign value of session into a variable .

Thanks a lot to all for helping me ...

Plz some one tell me .. How to assign value of session into a variable . I have a session which calculates no of rows in gridview . As below

session["cont"] = GridView1.Rows.Count ; Then i开发者_如何学Cn another function ,

I want to store this in Variable K ;


Have you tried:-

int K = (int)Session["cont"];
0

精彩评论

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