1.5 KiB
1.5 KiB
title | author | description | ms.author | manager | ms.date | ms.topic | ms.assetid | ms.technology | ms.prod | msc.legacyurl | msc.type |
---|---|---|---|---|---|---|---|---|---|---|---|
[How Do I:] Share Data Between Client JavaScript and Server Code Using a Hidden Field | Microsoft Docs | rick-anderson | In this video Chris Pels will show how to share data in between JavaScript and server-side code by using a hidden field in an ASP.NET page. Next, learn how t... | aspnetcontent | wpickett | 03/13/2008 | article | bf0a7434-a017-4506-a240-2bd27e360a2f | dotnet-webforms | .net-framework | /web-forms/videos/how-do-i/how-do-i-share-data-between-client-javascript-and-server-code-using-a-hidden-field | video |
[How Do I:] Share Data Between Client JavaScript and Server Code Using a Hidden Field
by Chris Pels
In this video Chris Pels will show how to share data in between JavaScript and server-side code by using a hidden field in an ASP.NET page. Next, learn how to use the RegisterHiddenField method in server-side code to programmatically create a hidden field on the client. In addition, see how to programmatically create a HiddenField server control for sharing data on an ASP.NET page. Finally, use the RegisterArrayDeclaration method to create a container in server code for storing multiple values that is rendered to the page where it can be accessed by JavaScript.