在不使用回发的情况下填写下拉列表 [英] fill dropdown list without using postback

查看:66
本文介绍了在不使用回发的情况下填写下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的ASP.NET项目中,我想在弹出窗口中提交客户端详细信息后,使用弹出窗口添加客户端名称,并且要填充下拉列表ddl_client(形式为popupwinow的形式).使用javascript

In my ASP.NET project i want to add clientname using popup window and i want to fill the dropdown list ddl_client (which is in the form where popupwinow is called ) after submiting the client details in popup window.how it is possible.Popup window is called using javascript

推荐答案

调用弹出窗口.使用JavaScript/jQuery,您可以实现相同的效果.

一种方法是使用模式对话框获取客户详细信息,然后在关闭时将值传递给父窗口.此文章 [
Using JavaScript/jQuery you can achieve the same.

One of the ways would be to use modal dialog to take client details and then pass the value to parent window on close. This article[^] would help you to achieve.

Alternatively, once popup window is closed, using Javascript, you can use XMLHttpRequest to get data from server and update the dropdown accordingly. Try!


这篇关于在不使用回发的情况下填写下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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