Does any change in any file inside bin folder cause application recycle in ASP.NET web application?

First, i can not provide a link to an official documentation. But from what i’ve read every change in the bin-folder(incl. subfolders) will cause the IIS to recycle the application domain. Abrupt Application Pool Recycling Any modifications in the Application’s BIN Directory Making changes in any Configuration File/s, like Web.config or others ( if you … Read more

Proper way to use JQuery when using MasterPages in ASP.NET?

You would declare your main jQuery scripts within the master page, as you would normally: <head runat=”server”> <link href=”https://stackoverflow.com/Content/Interlude.css” rel=”Stylesheet” type=”text/css” /> <script type=”text/javascript” src=”/Scripts/jquery-1.3.2.min.js”></script> <asp:ContentPlaceHolder ID=”head” runat=”server”> </asp:ContentPlaceHolder> </head> And then any page specific JS files could be loaded within the Content controls that reference the Head ContentPlaceholder. However, a better option would be … Read more

Disable web.config inheritance?

There is an attribute that you can use in the root web.config file to cause it not to have its contents become inherited by child applications. inheritInChildApplications Blog about inheritInChildApplications MSDN article on ASP.NET Configuration File Hierarcy and Inheritance Put the part of the config that is not for inheritance inside <location inheritInChildApplications=”false”> <NotInheritedConfigPart/> </location> … Read more

Global.asax not firing for Release build

We had this problem and a missing PrecompiledApp.config file was the solution. Without it global.asax events did not fire under IIS6 using an ISAPI filter and the rewritten.aspx approach documented e.g. on blog.codeville.net. We use msbuild to precompile the site before deploying. We scratched our heads over this one for a couple of hours when … Read more

pass a value into next page

there are multiple ways to achieve this. i can explain you in brief about the 4 types which we use in our daily programming life cycle. Please go through the below points. 1 Query String. FirstForm.aspx.cs Response.Redirect(“SecondForm.aspx?Parameter=” + TextBox1.Text); SecondForm.aspx.cs TextBox1.Text = Request. QueryString[“Parameter”].ToString(); This is the most reliable way when you are passing integer … Read more

How do I make a “generic error” page in my ASP.NET application so that it handles errors triggered when serving that page itself?

I like to start by categorize the possible errors. Categorize the errors. Page Not Found (this is full my log). Breaking parameters of the page by trying to hack it Error from wrong user data input. Totally Unknown error – a new bug that we must fix. a Very hard General error – nothing runs … Read more