简体   繁体   English

OnMenuItemClick事件后,用户验证不起作用

[英]user validation doesnt work after OnMenuItemClick event

I have a web form which includes 2 different panels in .net 2008. .net framework version is 3.5 . 我有一个Web表单,该表单在.net 2008. .net framework version is 3.5包含2个不同的面板.net 2008. .net framework version is 3.5 Each panel includes user input controls like textbox, dropdownlist. 每个面板都包括用户输入控件,例如文本框,下拉列表。 I have an asp menu control for navigation. 我有一个用于导航的asp菜单控件。 First item is selected at the beginning. 首先选择第一个项目。 When the user clicks the button, if the user doesn't fill the required user controls, validation control fires. 当用户单击按钮时,如果用户未填写所需的用户控件,则会触发验证控件。 But when I click the other aspmenuitem, then click the button without filling the required user controls, user validation does not fire. 但是,当我单击另一个aspmenuitem时,然后在未填充所需用户控件的情况下单击按钮时,不会触发用户验证。

Could you help me about why this situation takes place? 您能帮我一下为什么会发生这种情况吗?

image description 1 图片说明1

image description 2 图片说明2

OnMenuItemClick="menuTab_MenuItemClick" BackColor="#F7F6F3" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="X-Small" align="center" ForeColor="#7C6F57" StaticSubMenuIndent="10px" > OnMenuItemClick =“ menuTab_MenuItemClick” BackColor =“#F7F6F3” DynamicHorizo​​ntalOffset =“ 2” Font-Names =“ Verdana” Font-Size =“ X-Small” align =“ center” ForeColor =“#7C6F57” StaticSubMenuInde​​nt =“ 10px”>

         <DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
         <DynamicMenuStyle BackColor="#F7F6F3" />
         <DynamicSelectedStyle BackColor="#5D7B9D" />
         <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"  />

         <StaticHoverStyle BackColor="#7C6F57" ForeColor="White" />
         <Items> 
          <asp:MenuItem  Text="Nakit İşlem Sorgu(07.08.2015 ve sonrası)"    Value="0"></asp:MenuItem> 
         <asp:MenuItem  Text="Arşiv Kartsız İşlem Sorgu(07.08.2015 öncesi)" Value="1"   ></asp:MenuItem> 


         </Items> 
         <StaticMenuItemStyle BackColor="#cccccc" ForeColor="#333333"  
             HorizontalPadding="5px" VerticalPadding="2px" /> 
         <StaticSelectedStyle BackColor="#5D7B9D" ForeColor="White"  /> 
     </asp:Menu> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM