ajax手风琴在asp.net中选择了索引问题 [英] ajax accordion selected index problem in asp.net

查看:104
本文介绍了ajax手风琴在asp.net中选择了索引问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

heyy ..我正在使用ajax手风琴..我有5个手风琴面板..而且我还放回手风琴中的下一个按钮......我的问题是......第一次加载背面和下一个按钮是工作正常..但是当点击acoordion面板2并单击后退按钮..这不是woking ...这是我的代码请参考。那...并给出解决方案..





heyy..I am using ajax accordion ..and I have 5 accordion panel ..and also i put back and next button in that accordion ...My problem is ..while first time loading the back and next button is working fine ..but when click on the acoordion panel 2 and click back button ..it is not woking... here is my code please ref. that.. and give a solution ..


protected void imgBlockNext_Click(object sender, ImageClickEventArgs e)
 {
     imgBlockNext.CausesValidation = false;
     Accordion1.SelectedIndex = 3;


 }
 protected void imgBlockPrev_Click(object sender, ImageClickEventArgs e)
 {
     imgBlockPrev.CausesValidation = false;
     Accordion1.SelectedIndex = 1;


 }







所选的手风琴指数是单击手风琴面板内的控件或任何文本框时无法正常工作




the selected index of accordion is not working when click a control or any textbox that inside the accordion panel

推荐答案

您是否尝试在每个 ValidationGroup 控件> Accordion Pane ?

尝试为每个窗格的控件提供saparate验证组,并在next和previous按钮属性中设置 CausesValidation false。





--Amit
Did you tried separating ValidationGroup of the controls in each Accordion Pane?
Try giving saparate validation group for the controls of each pane and set CausesValidation false in next and previous button property.


--Amit


这篇关于ajax手风琴在asp.net中选择了索引问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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