如何将验证组设置为Accordian

如何将验证组设置为Accordian

本文介绍了如何将验证组设置为Accordian的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的注册页面中.用于显示Fileuploader的Accordian.代码在下面

in my Registration page. Used Accordian for show Fileuploader. code is below

<cc1:Accordion ID="Accord1"  HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"

         ContentCssClass="accordionContent" runat="server" SelectedIndex="-1" FadeTransitions="true"

         SuppressHeaderPostbacks="false" TransitionDuration="250" FramesPerSecond="40" RequireOpenedPane="false"  AutoSize="None">
         <Panes >
<cc1:AccordionPane ID="AccPan1" runat="server" >
<Header ><asp:LinkButton ID="linkupload" runat="server" onclick="linkupload_Click"

           ValidationGroup="MsgInfo" OnClientClick ="hideAccordionPane(0)">Attach Files</asp:LinkButton>

           </Header>
<Content> <fjx:FileUploader  UseInsideUpdatePanel="true"

               ID="FileUploader1" runat="server"   >
    <Adapters>
        <fjx:FileSaverAdapter Runat="server" FolderName="UploadFolder" OnFileNameDetermining="FileNameDetermining" />
    </Adapters>
</fjx:FileUploader></Content>
</cc1:AccordionPane>
         </Panes>
         </cc1:Accordion>



当我单击附加文件"时,将处理所有文本框验证,并且还会显示Fileuploader.
单击附加文件"链接按钮时,将查看Fileuploader.并且RequiredFieldValidator也正在工作,但是我需要在所有文本框条目之后查看此fileuploader.现在没有对Accordian的验证,并且如果文本框为空白或非空白,则将查看Fileuploader.

当所有文本框数据都不为空时,我只需要显示fileuploader即可,因为必须验证Accordian.,



When I click on Attach Files then all text box validation is processed and also Fileuploader is appeared.
Fileuploader is viewed when ach click on ''Attach File'' link button. and also RequiredFieldValidator is working ,but I need to view this fileuploader after all textbox entries . Now no validation for Accordian and if textbox is blank or not blank cases Fileuploader is viewed.

I need only show fileuploader when all textboxes data is to be not blank as must validate Accordian.,

推荐答案


这篇关于如何将验证组设置为Accordian的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 00:13