将变量c#转换为javascript [英] acess variable c# to javascript

查看:74
本文介绍了将变量c#转换为javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是c#和asp.net的初学者.我的代码后面有一个公共的十进制变量.我如何获取此变量并将其用于aspx页面上带有javascript的if语句中?...任何帮助将不胜感激.

Hi, i am beginner at c# and asp.net. I have a public decimal variable on in my code behind. How do iget this variable and use it in a if statement with javascript on my aspx page?...Any help will be much appreciated.

推荐答案

付出任何努力? Google充满了类似的话题.
请看以下内容,它可能会抢先一步.

http://manasbhardwaj.net/accessing-c-variables-in-javascript [ ^ ]
Any effort? Google is full of similar topics.
Look at the following like, it might give a head start.

http://manasbhardwaj.net/accessing-c-variables-in-javascript[^]


这篇关于将变量c#转换为javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆