asp.net 3.5中的下拉列表 [英] dropdownlist in asp.net 3.5

查看:58
本文介绍了asp.net 3.5中的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我的朋友们在codeproject。我非常感谢您在我的许多查询中的帮助。

我正在使用ASP.net3.5,c#语言和sql server管理工作室制作一个Web应用程序。



我将简要介绍下面申请的小小写:



1.i有一个主要形式.aspx这是一个入口表单,有很多下拉列表,文本框和按钮。但我有一些问题。



我有一个显示产品名称的下拉列表比如parle,britania等...我使用了第二种形式说NEWPRDUCT.aspx。

如果用户没有在amainform.aspx的下拉列表中找到该产品。他在下拉列表中选择了createnew和NEWPRODUCT .aspx会弹出,它会将新产品提交到数据库中。

但是当我关闭弹出窗口时。我的DROPDOWNIST自动更新了。即使我已经使用AJAX将它放在UPDATEPANEL中。



是否有任何方法可以实现这一目标。???? div class =h2_lin>解决方案

检查Javascript库 http://knockoutjs.com/

这是一个很好的图书馆。

如果你不想要第三方,你可以简单地添加一个javascript计时器,它将每隔5秒检查一次来源,如果有什么新的话,它会更新页面。


Hello my friends at codeproject.I am very thankful for your help in my many queries.
I am making a web application using ASP.net3.5, c# language and sql server management studio.

I will brief out the small jist of the application below:

1.i have a mainform.aspx which is an "entry" form having many dropdownlists,textboxes and buttons.But i am having some issue.

I have a dropdownlist that shows name of the products say parle,britania etc...I have used a second form say NEWPRDUCT.aspx.
if the user doesnt find the product in the dropdownlist in amainform.aspx.He chooses createnew in the dropdownlist and NEWPRODUCT.aspx pops out , which will submit new product into the database.
But when i close the popup form.MY DROPDOWNIST DOESNT GET UPDATED AUTOMATICALLY.EVEN THOUGH I HAVE PUT IT IN AN UPDATEPANEL USING AJAX.

IS THERE ANY METHOD BY WHICH I CAN ACHIEVE THIS.????

解决方案

Check Javascript library http://knockoutjs.com/.
This is a good library.
If you don`t want a third party you can simply add a javascript timer that will check the source every 5 seconds and if anything new then it will update the page.


这篇关于asp.net 3.5中的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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