Ajax ComboBox SelectedIndex ChangedEvent [英] Ajax ComboBox SelectedIndex ChangedEvent

查看:75
本文介绍了Ajax ComboBox SelectedIndex ChangedEvent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在尝试将Ajax(.Net 4.0)ComboBox SelectedIndex Change Event与以下功能一起使用,但没有代码提供帮助.

ComboBox具有以下属性:

AutoCompleteMode="SuggestAppend" DropDownStyle="DropDown"


即使Item不在comboBox中,我也应该能够在ComboBox中写入任何值,这可以与设置DropDownStyle="DropDown"一起使用.

同时,如果该项目在ComboBox的项目列表中不存在,则它既不会回发,也不应在ComboBox中添加项目(这就是我要寻找的解决方案).

如果该项目存在于ComboBox的项目列表"中,则应回发(应触发SelectedIndex Change事件).

我尝试了一些Java脚本,但没有帮助.

非常感谢您的配合.

解决方案

您是否尝试过对组合框使用AutoPostBack ="true"道具


set AutoPostBack = "

组合框的属性


Dear All,

I am trying to use Ajax (.Net 4.0) ComboBox SelectedIndex Change Event with following feature but no code has helped.

The ComboBox has the following properties:

AutoCompleteMode="SuggestAppend" DropDownStyle="DropDown"


I should be able to write any value in the ComboBox even if the Item does not exists in the comboBox, this works with setting the DropDownStyle="DropDown".

At the same time if the item does not exist in the Item List of ComboBox then it neither post back nor it should add item in the ComboBox (this is what i am trying to find solution for).

If the item exists in the Item List of ComboBox then it should postback (SelectedIndex Change event should fire).

I tried some java script but did not help.

I do really appreciate your cooperation.

解决方案

have you tried AutoPostBack="true" propety to your combobox


set

AutoPostBack="true"

property of your combobox


这篇关于Ajax ComboBox SelectedIndex ChangedEvent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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