Ajax ASP.Net

File: Default.aspx
<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        throw new Exception("Server Error");
    }



    UpdatePanel Error


    
            id="sm1"
        Runat="server" />
            id="up1"
        runat="server">
        
                    id="btnSubmit"
            Text="Submit"
            OnClick="btnSubmit_Click"
            Runat="server" />
        

    
    


   
Web.Config