在第一次点击时使用firefox浏览器点击webcombo时没有回发 [英] No postback occured on click on webcombo in using firefox browser for first click

查看:86
本文介绍了在第一次点击时使用firefox浏览器点击webcombo时没有回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网络应用程序中,我使用webcombo绑定记录以显示下拉列表。同样,我有两个用于数据输入的文本框和四个用于根据webcombo中选择的值显示数据的文本框。



使用Mozilla firefox,因为我从webcombo中选择值,这些值将显示在四个文本框中。但问题不是显示值,而是在第一次点击webcombo时显示保存在两个文本框中的数据条目的RequiredFieldValidator。但是,当我第二次在webcombo中选择值时,值会显示在文本框中,并且它的工作方式应该是正常的。我发现第一次点击网络组合,没有发生回发。但是,从第二次发生回发。



此问题仅适用于Firefox。对于IE浏览器,解决方案工作正常。任何帮助

In my web application, I am using webcombo that binds records for dropdown display. Similarly, I have two textboxes for data entry and four text boxes for showing data based on value selected in webcombo.

In using Mozilla firefox, as I choose value from webcombo, the values were to be displayed in four textboxes. But the issue is instead of displaying value, RequiredFieldValidator that were kept in two textboxes for dataentry are shown on first click of webcombo. However, as i choose value in webcombo second time, the value are showing in textboxes and it works the way it was supposed to work. I found out the for first time click on web combo, no postback takes place. But, from second time, postback occurs.

This issue is only for Firefox. For IE browser, the solution is working fine. Any help

推荐答案

尝试将初始选择值放入其中一个组合框项目(可能是第一个?),这样第一次更改选择确实可以从某些内容更改值(而不是从null改变。)
Try putting initial select value to one of the combobox items (maybe first one?) so that first change select really changes value from something (as opposed to change from null).


这篇关于在第一次点击时使用firefox浏览器点击webcombo时没有回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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