Can you prevent your ASP.NET application from shutting down?
I think I heard that ASP.NET applications will shut down after a while of being idle (i.e. no visitors).
I think I heard that ASP.NET applications will shut down after a while of being idle (i.e. no visitors).
I have encountered many half-solutions to the task of returning XML in ASP.NET. I don’t want to blindly copy & paste some code that happens to work most of the time, though; I want the right code, and I want to know why it’s right. I want criticism; I want information; I want knowledge; I want understanding.
I’m sorry, but I can’t understand why this doesn’t work. After compile, I receive a “Null reference exception”. Please help. public partial class labs_test : System.Web.UI.Page { protected void Button1_Click(object sender, EventArgs e) { if (TextBox1.Text != "") { Label Label1 = (Label)Master.FindControl("Label1"); Label1.Text = "<b>The text you entered was: " + TextBox1.Text + ".</b>"; … Read more
This must have been asked before, but after reading here, here, here and here I can’t extrapolate the relevant parts to make it work. I am revamping an old web forms site into MVC, and want to catch particular incoming HTTP requests so that I can issue a RedirectPermanent (to protect our Google rankings and avoid users leaving due to 404’s).
To get the current logged in user at the system I use this code:
Today I released a small asp.net beta web application which allows internal staff to modify some product information. We started running into issues where users were overwriting each others product information… even though each staff member was editing a totally different row (Product).
I have an app that needs to read a PDF file from the file system and then write it out to the user. The PDF is 183KB and seems to work perfectly. When I use the code at the bottom the browser gets a file 224KB and I get a message from Acrobat Reader saying the file is damaged and cannot be repaired.
I have an MVC project that for an uknown reason refuses to publish to a local folder in the PC.
I have added the following settings inside my web.config file to initiate an API call to external system. So I am storing the API URL + username + password as follows:-
What is the best way to check for the existence of a session variable in ASP.NET C#?