Store gridview id
store gridview id in variable and use that variable in entire page without using gridview ID
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Siva SankarRank #9,790 · 202 reputationPosted Apr 29, 2015, 3:19 AM EDT
To store your gridview id or any re-usable info,we go for Sessions.
like, Session["GridId"]=your Grid id;
Then you can access your id as follows...
string xxxx=Session["GridId"].Tostring();