How to pass a hidden field from one page to another?
问题 I have a .Net class library. I want to pass a hidden variable from once code behind page and fetch it in another code behind page. PLease note I dont have any design page(aspx page) where I can use form tag and get/post method. How can we do this? NB: I want to use hidden fields to pass value from 1 page to another. 回答1: you can save the value in the Session as such: Session["YourName"] = yourvalue; in code behind you do this: Session["MyValue"] = "theValueYouWantToPass"; in your other page