使用Ajax在Dropdownlist中进行数据绑定(没有Ajax工具套件) [英] Databinding in Dropdownlist with Ajax(without Ajax tool kit)

查看:72
本文介绍了使用Ajax在Dropdownlist中进行数据绑定(没有Ajax工具套件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
在Visual Studio 2005中(不使用Ajax工具套件)使用Ajax加载Dropdownlist是否有可用的帮助?许多网站的PHP中都提供了许多可用功能,但没有一个使用Classic Asp页面.如果可用,请提供一些代码..

Hello,
Is there any help available to load a Dropdownlist with Ajax in Visual Studio 2005 (without using Ajax Tool kit)? Many available in PHP in different web sites but none of them using Classic Asp pages. If available, Please reply with some code..

推荐答案

在您的脚本中使用此ajax函数..



传呼机:function(){

use this ajax function in ur script..



pager: function () {


.ajax({
类型:"POST",
网址:"NameOfAspxPage/CodebehindFunctionName",
数据:"{variablename:""+值+";}",
contentType:"application/json; charset = utf-8",
dataType:"json",
成功:功能(响应){
//绑定下拉脚本
}
});
},
.ajax({
type: "POST",
url: "NameOfAspxPage/CodebehindFunctionName",
data: "{variablename:''" + value + "'';}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
// script for binding drop down
}
});
},


转到此处 [
Go here[^], you can find lots of samples.


这篇关于使用Ajax在Dropdownlist中进行数据绑定(没有Ajax工具套件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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