如何将值从javascript发送到服务器端(asp.net)? [英] how to send values from javascript to server side(asp.net)?
本文介绍了如何将值从javascript发送到服务器端(asp.net)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在不刷新页面的情况下从JavaScript(客户端)向服务器(asp.net)发送值的最佳方法是什么?
What is the best way to send values from JavaScript (client-side) to the server (asp.net) without refreshing the page?
我想将数据插入数据库,但是我不想刷新页面或更改页面上的任何数据.
I want to insert the data into a database but I don't want to refresh the page or change any data on it.
推荐答案
Ypu必须使用 Ajax 技术, Asp.net ,
Ypu have to use Ajax techniques, JQuery, Asp.net, YUI, and the rest of api and libraries that let you use Ajax techniques.
Asp.net中最简单的一种是通过在页面中添加 ScriptManager 和 UpdatePanel 来使用内置的Asp.net Ajax功能
The easiest one in Asp.net is using builtin Asp.net Ajax functionalities by adding a ScriptManager and UpdatePanel to your page
这篇关于如何将值从javascript发送到服务器端(asp.net)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文