在ASP NET VB中单击复选框时停止加载功能

时间:2016-09-22 18:39:13

标签: asp.net vb.net

我想在以下情况下提供一些帮助。

我有一个加载组织结构图的方法(函数),如下所示:

PAGE chart.aspx.vb

partial class display chart
  Sub MyChart()
    'My Code Here
  End Sub
End class

我的登录页面上有一个复选框按钮,当它被勾选时将停止运行上述功能,并且当用户登录时不会加载组织结构图。

PAGE login.aspx

<div>
  <asp:button id="login" Text="login" runat="server"></button>
  <asp:checkbox id="mytick" Text="Tick Me" runat="server" />
</div>

PAGE login.aspx.vb

class newclass
  Sub newsub
    If mythic.Checked Then
      'help me here - User who don't want to see the chart
    Else
       'display the chart
    End If
End class

我只在VB NET中寻找解决方案,而且 我想提前感谢您的支持

0 个答案:

没有答案