使用jquery的ASP.NET Ajax表单提交 [英] ASP.NET Ajax form submission using jquery

查看:73
本文介绍了使用jquery的ASP.NET Ajax表单提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我学过的朋友.
我在asp.net上比较陌生,没有经验.
我正在一个项目,需要我使用jquery提交asp.net ajax表单.表单上包含大约100个奇数字段.
谁能指导我有关上述主题的详细教程.任何帮助将不胜感激.

Hello my learned friends.
I am comparatively very new and inexperienced in asp.net.
I am working on a project which requires me to submit an asp.net ajax form using jquery. The form contains about 100 odd fields on it.
Can anyone guide me to a in detail tutorial about the above topic.Any help would be highly appreciated.

推荐答案

我要问的第一件事是为什么有必要表单包含这么多字段,为什么要使用AJAX发布表单.除此之外,您还可以在此处找到 JQuery Ajax [
The first thing I would ask is why it is necessary to have a form with that many fields and why use AJAX to post it. Aside from that you can find reference here for JQuery Ajax[^]. By adding a class to the fields, it doesn''t need to be implemented in CSS, just used as a marker, you can iterate through the collection and get the name and values to post.

Something like this


(.formField").each(function() { var name =
(".formField").each(function() { var name =


(this).attr("id"); var value =
(this).attr("id"); var value =


这篇关于使用jquery的ASP.NET Ajax表单提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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