主页下拉选择索引事件未触发 [英] Master Page Dropdown selected index event not firing

查看:49
本文介绍了主页下拉选择索引事件未触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我在主页面上有一个用于更改菜单内容的下拉菜单。当我从下拉列表中更改所选项目时,选择的索引事件不会触发/工作,页面加载仅触发。

解决方案

显然页面加载首先触发,因为当时页面加载您的子页面首先加载,然后加载主页面,所以当您选择下拉列表的项目时,它将回发您的整个页面并且您的子页面加载事件正在触发..将您的下拉列表保留在更新面板中,

Hi ,


I have a dropdown in master page for changing the menu content . when i change selected item from dropdown then selected index event not firing/working and page loads only fires.

解决方案

obviously the page load is firing first because at the time of page load your child page is load first and then master page is load, so when you select item of your dropdown list it will post back your whole page and your child page load event is firing.. keep your Dropdown list in update panel,


这篇关于主页下拉选择索引事件未触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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