tags:

views:

20

answers:

1

Hi 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 in another function ,

I want to store this in Variable K ;

A: 

Have you tried:-

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