I am not too clear about the IIS lifecycle, but my general understanding is:
Every couple of hours IIS resets itself. This is apparently done so as to fix up any memory leaks, resource deadlocks etc. etc. ie. It seems to be a cleanup operation.
Every couple more hours (I think I read 23 hours) the server just stops listening to inbound requests and runs Application_End. An external page request will restart the app.
Can I get a bit more reasoning to why these behaviors occur? Especially with regards to item #2... My server runs internal scheduling behaviors which completely died last night. The reason was that Application_End occurs and no customer requests were happening to start the IIS server again. This seems weird. Why not just clean up memory leaks etc. and then keep IIS running exactly as it was?
I have 2 pages..In Both the pages i have one button.If i click Btn in Page one it should transfer the control to Page2 .But if i Click button in Page 2 it should not reload the Page1.It should just display the data in page1 without reloading.
I have a grid at the bottom of my website. There is an image button that addas a new row to the grid but as i click the image button the scrolling moves to the top disturbing the focus of the page. How can i stop the scrolling at one position only.
I'm seeing an issue of some static pages that are using the browser cache, which is not desired. To prevent caching, I'm setting
<clientCache cacheControlMode="DisableCache" />
in the relevant <location> tag in web.config
If I open the page in Firebug (in the Net tab), I see that the Response headers have Cache-Control: no-cache which is correct, but the status of the Response is 304 Not Modified! Isn't that a contradiction? How can I get it to stop caching (i.e. always send a 200 with content)?
I am creating online application in asp.net, there are some dropdownlist on a page, when i select some item from the dropdown list page load is calling again, how can i stop this?
I have two custom ActionFilters on an action. In first of the actionfilters, I have an redirect performed if a condition is not met (classic authorization). And in another I have an redirect performed if another condition is not met (say role checking). But I do not want to continue to the second actionFilter if the first one is not met. How to do this?
This has been covered a couple of times, without a suitable answer:[URL]
I have created a custom paging data class that is used with an ObjectDataSource. In intial tests, I found it was performing worse than my old SqlDataSource code. Whilst investigating, I found that for every page load, the ObjectDataSource is being created and binding twice.
Investigating the links above led me to believe this could be a bug (or unexplained behavior) in regards to changing my GridView's column visibility in the OnDataBound event like so:
I use this event to customize the display of certain fields, as well as hide columns that are not pplicable during some search types. When I disable the event, the ODS stops binding twice. I can't really think of a way to get around this behavior. Has anyone else see this issue or developed a work around?
if i click submit.. a file is then created in xml format but if i enter new data it will overwrite the same file how do i stop this..
this is the code i am using
Protected Sub btnWriteXML_onClick(ByVal sender As Object, ByVal e As System.EventArgs) Try Dim enc As Encoding Dim objXMLTW As New XmlTextWriter(Server.MapPath("contact.xml"), enc) objXMLTW.WriteStartDocument() objXMLTW.WriteStartElement("Feedback Form")
I'd like to stop IE8 from sharing my sessions in one of two ways (or both if possible):
Through configuring the browser to always do this (so I can force my users to configure their browsers in this way). Through code in my web application.
I haven't made any code or configuration changes (that I know of) to my ASP.NET web application and this morning it suddenly stopped showing the AM in my displayed times. PM still shows up, just not AM. It's hosted on Windows Server 2003. I figured somehow the OS regional settings might have been changed somehow, but that doesn't appear to be the case. How could this have happened?
I was able to change the OS time format to hh:mm:ss tt and then back to h:mm:ss tt and it seems to have fixed my app. I'm going to assume that the hosting company made some kind of change unless somebody has a better idea
I developed a Webpage in ASP.NET - the page has a button that starts a DOS-Program on click.Here is the Code:
if (!String.IsNullOrEmpty(endTime)) { Process p = new Process();[code]....
The code works fine and starts the Process.Now the Problem: I click on the button and the process starts (I see this in the database) and the program works fine, however, I want to stop the process now, but don't know how.
There isn't a DOS-Window where I can click "CTRL + C" or something.What can I do to stop the process?And which User is used for starting the Process?
I've got one long GridView control on my website. The problem is, when I scroll down this GridView and select a row the selection occurs, but whole GridView is scrolling back to top and lost its current position. I am also fixed header of my gridview but when i put stop scrolling code in that page, its disable my fixed header.
I notice whenever I try to build my asp.net website that I have been working on it compiles as a dll rather than as an actual web site. I don't know why but it seems to happen with all my asp.net project for the past couple of days. I might have accidentally change the output settings. However, I output type select that is set to "Class Library" but the selection to greyed out so I can not change it. How do I change the settings?
Quote:SpVoice objVoice = new SpVoice();objVoice .Speak(Text........, SpeechVoiceSpeakFlags.SVSFlagsAsync);This code runs fine in ASP.NET But can anyone tell me how I can PAUSE, RESUME, STOP Volumes in ASP.NET?
I am running a web project on IIS 7.5 and the rewrite stopped working. I am trying to rerun it with IIS 6 and everything perfect. only with IIS 7 it tells me that the page not found.when I am using VS2010 to run the project then the rewrite solution works. when uploading it to the server eith IIS7.5 the page cannot be found..
Few months I've started learning ASP.NET MVC 1.0. Although hard in the beginning, now I've made huge progress so that I'm working on something serious I can show to my colleagues. But, now MVC 2 is almost out there. Now I would like to know if MVC 1.0 and MVC 2 are profoundly different. In fact, I wonder if I need (first) to finish what I am into or (secondly) I need to stop everything and learn first MVC 2. To illustrate my point, I'd say: Is migrating from MVC 1.0 to MVC 2 the same scale as migrating from Web Form to MVC 1.0
i have the falowing methos used on my website to capture client certificates that is instaled on the server and he works frequently well
[Code]....
The Problem is that for some times he works return the certificates but from a time to other he stop working and nothing return with no errors the only way to he become working again is to stop and start the Application Pool in IIS.
i have a page which consists of a drop down box.in that drop down box i am having two values namely start and stop. i enable the autopostback property to true. when user selects start or stop from dropdowm box, the page is refreshing.now what i want is...when the user selects stop from dropdown box..the page should nt refresh.
Im building a web application that charges for access on a per user basis. Ive used standard roles and membership for setting up accounts and logging in. I want to ensure that a client cant use the same user details to login more than once
ie if user abc1 is already logged in, someone else cannot login again using the same credentials
I have a simple example of a ModalPopup with a panel that appears in the center of the ModalPopup and a couple of buttons in that panel. One of the buttons is a cancel and the other is an OK button. No matter how many other buttons that I add each one closes the ModalPopup. I need to keep the ModalPopup open so that I can run a few calculations then click a close button.
I had thought that returning false would keep my asp.net OnClick even from firing, but it still does. I've confirmed that it is getting to the return false section of code using alerts. Is there anything I can do to stop it from firing using jQuery/javascript?
I have a JQuery Dialog that is opened when a button is clicked. The first time around, it should do a postback, but when the dialog closes and I click the refresh button of the broswer, it sends the data again and duplicates the data I just entered. Should I add a return false somewhere so it doesn't postback when the dialog is closed. Here is the script: