在Asp.NET中,如何在javascript和c#之间交换数据 [英] In Asp.NET,how to exchange data between javascript and c#

查看:61
本文介绍了在Asp.NET中,如何在javascript和c#之间交换数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Asp.NET中,如何在javascript和c#之间交换数据(例如,使用c#或相反的javascript读取和写入值/函数),我的javascript函数位于单个文件中,而不位于html文件中.谢谢.

In Asp.NET,how to exchange data(e.g,javascript read and write the value/functions in c# or opposite) between javascript and c#,my javascript functions are in a single file ,not in the html file.Thank you.

推荐答案

尝试 VB.NET/C#和JavaScript通信 [ ^ ].

您还可以查看论坛
http://social.msdn.microsoft.com /Forums/zh-CN/netfxjscript/thread/3efc7bf9-730f-47d0-bc9c-7a3550cf1282/ [ http://forums.asp.net/t/1117189.aspx [
Try VB.NET/C# and JavaScript communication[^].

You can also look at the forums
http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/3efc7bf9-730f-47d0-bc9c-7a3550cf1282/[^]
http://forums.asp.net/t/1117189.aspx[^]


hii,
请参阅
http://dotnetslackers.com/articles/aspnet/JavaScript_with_ASP_NET_2_0_Pages_Part1.aspx
hii,
refer this
http://dotnetslackers.com/articles/aspnet/JavaScript_with_ASP_NET_2_0_Pages_Part1.aspx


这篇关于在Asp.NET中,如何在javascript和c#之间交换数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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