we have a reseller web application that uses basically the same asp.net codes on different domains. However we replaced the cookies in the web.config files to the root domain of each domain and the timeout time to 1000
HOwever for the initial site that was setup, it runs well. But every additional site times out after about 2mins
I have looked through the web.config so many times to see if anything is conflicting but cant find anything.
I'm using ASP.NET MVC 3 with the Authorize attribute, but it keeps kicking me to the logon page after 1 minute, but even though my expiration is set to a very high value, it times out quickly. I check the cookie in my browser and its still there and not set to expire until about a month later, and it's set to be persistent, so I'm not sure why it keeps booting me. It only happens on my published location, locally it works just fine.
var ticket = new FormsAuthenticationTicket(username, true, 500000); var encryptedTicket = FormsAuthentication.Encrypt(ticket); var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, encryptedTicket); cookie.Expires = ticket.Expiration; Response.Cookies.Add(cookie); web.config: <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="7200" slidingExpiration="false"/> </authentication>
I am trying to add some code that logs to a table the time a page has taken to generate, from the request coming in to the response given back. The easiest way to do this is through our master page as it can add the timings of every page.Where I'm a little unsure, is when to put the start and end timings.Currently, I set the start time in the page.unload and the end time as the last part of the page.load on the master page.The figures coming back seem ok, but I'm not sure if I am picking the earliest and latest possible times to get my timings?
my client/iis (not sure which) usually times out after about 30s - 1 minute while im debugging (stepping through code) which not only causes me to lose my spot and have to start over (usually stepping faster, making more mistakes) but the IIS Debug session closes completely and I have to warm up the entire session again.
What's the best way to get more time out of a debugging session?
Debugging a vanilla 3.5 Web Site (not app) on IIS 7.5 Classic Pipeline
My session keeps timing out in just a few minutes even though I've specified a 200 minute expiry.
In my web.config I've set the timeout for the forms and the sessionState. I've looked at some other similar questions on Stack Overflow but still can't suss this.
I have a page insert form, It has been working fine for a while. All of the sudden it has stopped working in IE8. I think IE is timing out because my page is taking too long to insert and I am getting:
So, in the above on the Master Page onload I am calling the javascript to get the screen resolution Then in my default page....which is being used first. My master page is loading and then my default page is loading. I have this is my Page Load event
[Code]....
However, what is happening is that I am getting the MessageBox.Show from the default page saying the screen is <null> by <null> and then I start getting the alert boxes from the javascript saying what the screen width and screen height is. In my page Load event of default. how can I wait until the java script in Master is done? Or is the a better place to put these events?
According to the msdn documentation, as you can see on the diagram, a server control's "Data binding events" occurs after all "control changed events". So in the case of a DetailsView control, the ItemInserted event would happen before the database operation?
I have a query that, when run in SQL Server Mgmt Studio query analyzer window, completes in about 5 seconds. However, when I attach this query to a table adapter in visual studio and try to preview the data, I get an error that says:"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."Please note, the dataset was successfully configured using the TableAdapter Configuration Wizard, so there didn't appear to be any syntax errors with my query. Also note that I have other datasets connecting to the same database that are working as expected, so it doesn't appear that it would be an issue with the server not responding. Does anyone have thoughts on what kinds of things, other than a query taking too long to run, that could cause this specific error?
I am working on the Home Page of a new client. The client wants me to show 5 images in his home page, which he does not want to part with.I am using a master page and also a user control in the home page.All this make the home page too heavy(if this is the right word).All are .jpg images.
The master page contains logos and the user control is a table containing hyperlink to navigate to other web pages.
I have been working on a web application using C# and I want to capture images from my webcam on the registration page. The concept is as the page loads, the system checks for a webcam connected and if the webcam is found conencted, Image streaming should be done and the frames would be displayed on the page. As soon as I click the "Grab Image" button, the Image should be captured and stored to a database.
Using Vb.net I created a html table with a hyperlink column to another ASPX.Net page. The page I am linking to has a text box that accepts a customer number and a button (NEXT) to link to another ASPX.Net page. When I link to the first page, the customer number is not in the textbox. Also, I do not know how to execute the NEXT button so it links to the final page.
I realize that subroutines in the 'C' language are now classes that are instantiated as objects in the C# language, but I don't know how to use them in a web page. I have several control event handlers that need to use the same function. Where is the class defined and how is it instantiated within the event handlers?
I transferred my precompiled Default.aspx and all related image files to the main folder of my www.freewebs.com account. I also transferred App_Code.compiled, App_Code.dll, App_Web_c871ipga.dll, App_Web_s_wu1khu.dll, App_Web_vy0pwb06.dll, and default.aspx.cdcab7d2. compiled in a new bin folder. When I accessed the URL address for the Default.aspx file in my freewebs account, all that I got back on my browser was: This is a marker file generated by the precompilation tool, and should not be deleted!
I also tried to deploy without precompilation. However, when I transferred my uncompiled Default.aspx web page to my freewebs account and entered [URL] what I got back on my browser was only a listing of the source code for the web page complete with my C# script code. Why can't I execute an ASP.NET web page?
I want to design a website wherein the page would be having 2 sections.
Section 1. Web page comming from other web site (this web page's domain may/ may not be the same wrt the website in which it would be getting displayed)
Section 2. Web page designed for this webSite
I don't want to use the IFrames for this purpose.
Further, the webpage from Section 2 would require the data from webPage of Section 1 (Interaction would be there)
I have some text fields fields of my page say P1, say T1, T2, T3. I also have a link button in my page which links it to another page P2, which also has some textfields. I also have a link button which links it back to page P1.
When i fill in the text fields in my page P1 go to the next page P2 and try to return to P1. I loose the values in t1, t2, t3.
How to retain those values even if i am moving back and forth between these pages
<authentication mode="Forms"> <forms loginUrl="Login" defaultUrl="DailyLog" timeout="2880" cookieless="UseCookies" /> </authentication> when i browse my application through local host , it shows Login screen , also validating the credentials , but without entering any credentials if i change my Url at login page from :
http://localhost:49702/Login
to
http://localhost:49702/DailyLog
it goes to DailyLog without confirming the login ...
in Login Screen on Submit button Click event i have done this :
I have a issue, and i need your opinion how I can do it. May be someone from you did the same.
for example, we have structure of property address what stored in database:
0. Property type
1. Region
2. Postal Code
3. City
4. Street
5. List of properties
I need to build SiteMap with work with SiteMapPath.
If we have small count of records in database this is not a problem but what I need to do if in database present extrimally big count of element for each node (from 0-5) ?
make query to each element and build site map this is not good for two reason perfomance and count of queries to DB.