Im bit confusing while using HIDDENFILED Controller in asp.net.why we use HIDDENFILED Controller in Gridview.
why we use HIDDENFILED Controller in asp.net
Hi,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Aug 29, 2013, 3:48 AM
The HiddenField control is used to store a value. It is rendered element. View state, session state and cookies are used to maintain the state of a web forms page. You can use HiddenField instead of view state, session state and cookies.
Regards,
Iftikar
Sanjeeb LenkaPosted Aug 29, 2013, 5:12 AM
share your aspx and cs code. we will check that.
KRayudu VPosted Aug 29, 2013, 5:09 AM
GridViewdefined as follows:Sanjeeb LenkaPosted Aug 29, 2013, 4:01 AM
Hiddenfield control used to store value . and it will not shown to user in design but you can use it in that page in client side. you can use hiddenfield instead of viewstate. the hiddenfield value is only available for that page where it placed not in all the pages.
Anurag SarkarPosted Aug 29, 2013, 4:01 AM
KRayudu VPosted Aug 29, 2013, 4:00 AM
and we will access this Controler using findcontrol in code behind.whats the use?