<%@ Register TagPrefix="Title" TagName="TitleShow" Src="/aspnetdata/Title.ascx" %>
<html>
<head>
	<script language="C#" runat="server">
	void Page_load(Object sender, EventArgs e){
	int x=4;
	int y=0;
	try{
		int z=x/y;
	}
	catch(NullReferenceException ex){ 
		ErrMsg.Text="错误信息为：" + ex.Message;
	}
	catch(DivideByZeroException ex){ 
		ErrMsg.Text="错误信息为：" + ex.Message + "<br>";
		ErrMsg.Text += "完整内容为：" + ex.ToString();
	}
	catch(ArithmeticException ex){ 
		ErrMsg.Text="错误信息为：" + ex.Message;
	}
	catch (Exception ex){
		ErrMsg.Text="错误信息为：" + ex.Message;
	}
	}
	</script>
</head>
<body background="/aspnetdata/images/winback.gif">
<Title:TitleShow id="BookT" Runat="server" />
<form id="nform" runat="server">
<p><asp:Label id="ErrMsg" align="left" runat="server" />
    </form>
</body>
</html>