tag:blogger.com,1999:blog-6082652835152798567.post6019611814902240903..comments2024-03-28T21:41:58.974-07:00Comments on Sql server, .net and c# video tutorial: Custom errors in asp.net - Part 71Unknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6082652835152798567.post-32650743571095048542017-08-25T05:51:37.664-07:002017-08-25T05:51:37.664-07:00you have to put these markes in front of the page ...you have to put these markes in front of the page that you want to move to it like this:<br />Response.Redirect("/~Error.aspx").Anonymoushttps://www.blogger.com/profile/00592965704509333332noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-17411576181289554712015-07-14T11:39:19.414-07:002015-07-14T11:39:19.414-07:00Try to run with Ctrl + F5 you will get to the erro...Try to run with Ctrl + F5 you will get to the error page dude.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-8091888383729667832014-06-23T10:11:47.073-07:002014-06-23T10:11:47.073-07:00I have found the answer. In web.config file, set t...I have found the answer. In web.config file, set the compilation debug=false and when you execute that particular page. Run it the option "Run without debugging" so that way you will see error will introduce at Page_Level and will propogate further if you skip Server.ClearError(). Thanks my Teacher sunanda for the same.Shikhanoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-57472701175618859412014-06-22T10:31:47.688-07:002014-06-22T10:31:47.688-07:00Yes Venkat.
Same is happening in my code. I skippe...Yes Venkat.<br />Same is happening in my code. I skipped using try-catch-finally so that error on page should be handled by Page_Error Event Handler but the same is not working in my code. Plz Help!!<br />Shikhanoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-66952278116427255872013-10-14T03:47:57.344-07:002013-10-14T03:47:57.344-07:00hello Pragim,
When i am practicing your code of Ex...hello Pragim,<br />When i am practicing your code of Exception Handling. I am using a Page_error Event as you did in your tutorial, but when your are running a page you will be redirected to Error.aspx page but in my case it will show me the error and when i press F10 then it will me take to that page . What is wrong with my code please let me know. Here i am attaching my code.<br />namespace Exception_Handling<br />{<br /> public partial class WebForm1 : System.Web.UI.Page<br /> {<br /> protected void Page_Load(object sender, EventArgs e)<br /> {<br /> DataSet ds = new DataSet();<br /> ds.ReadXml(Server.MapPath("~/countryy.xml"));<br /> GridView1.DataSource = ds;<br /> GridView1.DataBind();<br /><br /> }<br /><br /> protected void Page_Error(object sender, EventArgs e)<br /> {<br /> Exception ex = Server.GetLastError();<br /> Server.ClearError();<br /> Response.Redirect("Error.aspx");<br /> }<br /> }<br />}<br />manishhttps://www.blogger.com/profile/05809796665417455535noreply@blogger.com