Embedding ASP.NET Server Variables in Client JavaScript (www.west-wind.com)
published 1 year, 11 months ago, submitted by
rstrahl(7085) 1 year, 11 months ago
Getting Server Variables embedded into a page and using them from JavaScript code can be a pain. Following Jon Galloway's post a few days ago I thought that maybe a solution that doesn't rely on ASP.NET AJAX and is more generic might be useful to make the task easier and apply much broader scope. The result is an easy to use, generic class that generates a JavaScript object from key value pairs created on the server from static values or dynamic control/object properties.
|
category: ASP.NET
|
Views: 97
tags:
ASP.NET another
Everyones tags:
Your Tags: