⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exceptionexamplehandled.aspx

📁 This is a book about vb.you could learn this from this book
💻 ASPX
字号:
<%@ Import Namespace="System.Web.Services.Protocols" %>

<Script Language="VB" runat="server">
Public Sub Page_Load(sender As Object, e As EventArgs)
  Dim example As New ExceptionExample()

  Try
    lblDiv1.Text = example.Divide(6,2)
  Catch err As SoapException
    lblDiv1.Text = "Unable to compute..."
  End Try

  Try
    lblDiv2.Text = example.Divide(5,0)
  Catch err As SoapException
    lblDiv2.Text = "Unable to compute..."
  End Try

End Sub
</Script>
The result of 6 divided by 2 is: <asp:label id="lblDiv1" runat="server" />
<br>
The result of 5 divided by 0 is: <asp:label id="lblDiv2" runat="server" />

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -