--- title: "[How Do I:] Share Data Between Client JavaScript and Server Code Using a Hidden Field | Microsoft Docs" author: rick-anderson description: "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..." ms.author: aspnetcontent manager: wpickett ms.date: 03/13/2008 ms.topic: article ms.assetid: bf0a7434-a017-4506-a240-2bd27e360a2f ms.technology: dotnet-webforms ms.prod: .net-framework msc.legacyurl: /web-forms/videos/how-do-i/how-do-i-share-data-between-client-javascript-and-server-code-using-a-hidden-field msc.type: video --- [How Do I:] Share Data Between Client JavaScript and Server Code Using a Hidden Field ==================== by [Chris Pels](https://twitter.com/chrispels) 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. [▶ Watch video (21 minutes)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/how-do-i-share-data-between-client-javascript-and-server-code-using-a-hidden-field)