skip to Main Content

Asp.net – Error executing child request with Server.Transfer

In our Global.asax file we have: protected void Application_Error() { Errors.Functions.HandleException(HttpContext.Current); } On a 404 error, the following code is executed: context.Server.Transfer("~/pages/errors/404.aspx"); context.ClearError(); context.ApplicationInstance.CompleteRequest(); This works absolutely fine for every 404 exception. However, we're seeing odd requests in our logs…

VIEW QUESTION

Html – How to add common properties across custom server controls that inherited different base classes

I need a Server Control (named FormLayout here) that renders child controls based on their attribute. The goal is to be able to write something like the following: <custom:FormLayout runat="server" ID="myForm"> <custom:MyDropDownList runat="server" ID="field1" ColumnSpan="12"></custom:MyDropDownList> <custom:MyTextBox runat="server" ID="field2"></custom:MyTextBox> </custom:FormLayout> This…

VIEW QUESTION

ASP.NET run issue

I'm having an issue with my ASP.NET webforms project in Visual Studio 2022 (using .NET Framework). When I initially create the project, the run button shows the browser name and runs smoothly. However, after closing and reopening the project, the…

VIEW QUESTION
Back To Top
Search