How To Get Chrome To Stop Caching When Working On An Aspx File In Visual Studio

Jan 4, 2011

I'm currently editing some html/css within a aspx file inside of Visual Studio 2010. I'm using Chrome as my browser. When I make changes inside of Visual Studio and save/ctrl + F5 to run it frequently fails to load the new updated .css file due to pulling old cached versions of the CSS.

I've used visual studio as my primary HTML editor before but when I work with pure html/css files I just save and refresh the file in chrome and it will refresh the updated css 100% of the time. I've only started to experience this problem when working with aspx files and running things via ctrl + f5. Anyone have any ideas of how I can fix this?

View 1 Replies


Similar Messages:

Visual Studio :: .aspx Page When Browsed With Chrome Browser Works Fine But With IE8 It Displays "Internet Explore?

Sep 5, 2010

I have VS 2008 installed and have IE8 browser as well as google chrome browser.However wheneever i try to run a .aspx page in solution explorer of VS with the browse with.. options,the page runs fine with chrome browser but not with IE8.The IE browser shows the error "Ineternet explorer cannot display the page".I have set the IE as the default browser in the browse with ... option of the VS 2008.

View 6 Replies

Visual Studio :: Accessing Controls Of .aspx File In .aspx.cs Withtout Any Declaration?

Feb 10, 2010

I am able to access the controls of ".aspx" file in ".aspx.cs" directly without any declaration in ".aspx.cs" or in designer.cs. How is this possible? This is happeing only if I open website as using File System.

Create a new ASP.NET web site application with Visual Studio 2008. So following three files will be created automatically

[code]...

How btnSave is being recognized by .cs file without defining it anywhere as an object of System.Web.UI.WebControls.Button?

View 3 Replies

Visual Studio :: Adding A Server Control On Aspx Page Does Not Add Events In Aspx.designer.vb File?

Oct 5, 2010

I work in VS 2008. Whenver I add a server control(Label) and set it properties in aspx.vb and build the solution, I get the error "Label1 not declared". While analyzing this issue I noticed that the event handler statements for the Label1 where not added in the designer.asp.vb file. These statement would actually be added automatically when I drag and drop a control to my webpage.

I would also like to inform the scenario after which this problem came to me. I was working in VS 2008 , VS 2005 and VS 2003 in the same machine.Could this have caused the issue ?

Now each and everytime when I add a control, I am adding the "With Events" code in the designer page to make my build succesfull which makes me to spend more efforts.

View 2 Replies

Visual Studio Auto Formatting Not Working On The Aspx Page?

Oct 14, 2010

I am running Visual Studio 2008. I cannot get the auto format to work on the source code of my aspx page. I have tried it from the edit menu and the ctrl K, D. Nothing works. If I manually fix everything, the next time I open the file the formatting is gone. Here is a sample of what it looks like:

[Code]....

View 2 Replies

Visual Studio :: Dynamic Compilation Of Aspx - Files Stopped Working

Sep 29, 2010

I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me. These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing an updated aspx-page in the browser.

But yesterday, during development of a website, I noticed that even the smallest changes in html, javascript or anything in the .aspx-files doesn't get reflected when I save and reload the page in my browser. Rebuilding doesn't help either, actually I'll have to do a "Rebuild All" (in Visual Studio 2008) in order to see the changes. This applies to all aspx-files in my project.

I tried with minor changes on files in another web application project on the same server, and there it works as it should. Something must has happened to this particular application, but I cannot figure out what. Do you have any ideas on how to solve this?

View 2 Replies

Visual Studio - Dynamic Compilation Of Aspx-files Stopped Working?

Sep 29, 2010

I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me.These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing an updated aspx-page in the browser.

But yesterday, during development of a website, I noticed that even the smallest changes in html, javascript or anything in the .aspx-files doesn't get reflected when I save and reload the page in my browser.Rebuilding doesn't help either, actually I'll have to do a "Rebuild All" (in Visual Studio 2008) in order to see the changes. This applies to all aspx-files in my project.I tried with minor changes on files in another web application project on the same server, and there it works as it should. Something must has happened to this particular application, but I cannot figure out what.Do you have any ideas on how to solve this?

View 1 Replies

Visual Studio :: Intellisense Stops Working In Aspx Files When Identity Impersonate Is Set

Nov 11, 2010

I have an MVC 2.0 environment in a S#arp layout, everything works great, and I have Intellisense working in my aspx file (for things like HTML helpers and Model properties) As soon as I add the line:

[Code]....

To my web.config, I lose Intellisense on my aspx files! Does anyone have any idea of why this is happening? Or have any experience with this?

View 1 Replies

Visual Studio - Share Aspx File In Two Solution?

Jan 13, 2010

how can I share one or two aspx file in two separated solution that if i change aspx file in both solution apply changes. Is it possible in visual studio 2008 or in Team foundation server?

View 1 Replies

Editing .aspx File Makes Visual Studio Unresponsive?

Apr 30, 2010

I'm using Visual Studio 2008 on Windows 7. When I'm editing .aspx file VS stalls and thinks for about 3 sec every time I add a tag. Very frustrating. I'm guessing its doing some kind of compilation or checking. What can I do to make VS more responsive?

View 1 Replies

Visual Studio :: Aspx File Rename Site Wide?

Apr 15, 2010

can I change an aspx file name site wide. i.e. every instant of it any where in the site?

View 4 Replies

Visual Studio 2008 IDE Freezes/crashes When Opening .aspx File With Css Included

May 17, 2010

Visual Studio (SP1) runs fine until I try and view .aspx source files with the lines

<style type="text/css">
</stlye>

anywhere in them, upon which it freezes (i.e is totally unresponsive) and I have to use the task manager to shut it down.

I have read a lot of questions about Visual Studio 2008 crashing on viewing some source files. However, I still can't fix this problem.

I have systematically deleted and re-included all other code and it comes down to these two lines, which is very confusing. Sometimes it happens as soon as the lines are added, sometimes it doesn't freeze until I build the solution with any of the problem pages open. I can add external style sheets, and it only started recently.

I had Resharper 4.5 installed and have since uninstalled it, and do not have anything else installed.

Also, it happens to other people with the same source code, and re-installing Visual Studio does not fix the problem. So I have several questions:

Is there any way I can find out what's happening? I don't understand how the code (the css tag itself) could crash Visual Studio, and am thinking that this is unlikely and it must be something else within my solution, would this be a safe assumption? Could this have anything to do with installing Office 2010?

View 4 Replies

Visual Studio :: Reassociating A Code Behind File With .aspx In 2008 Website Solution

Feb 12, 2010

I can't get my .aspx page to recognize control events in it's codebehind.

[Code]....

which is fine, but I don't want to use inline script.

[Code]....

View 6 Replies

Visual Studio :: Intellisense In VS2008 Use Code-behind, And Though Declare ASP Elements In The Aspx File?

Nov 2, 2010

I have an intellisense problem in VS2008.I use code-behind, and though I can declare ASP elements in the aspx file, it's as if the code can't see them.The pages run OK,but when I type anAspLabel and then '.' for example, intellisense does not pop up the methods and members for this asp label.

I've tried the reset option in Options > Text Editor.Intellisense works fine if the class instance is declared in the code behind file,but it won't recognise web controls declared on the aspx page.

View 3 Replies

Visual Studio :: Saving Aspx File In Source View Mode Takes Too Long?

Jun 30, 2010

saving my aspx file takes too long, it has some nested tables, but it is nothing huge, it has like 50+ overall controls on the form. When I hit the save button, it takes a few minutes and drives cpu crazy, so I am guessing it is doing something in the background.

So, what is the reason, any clues how to speed this up?

I am using Vs.Net 2010 Ultimate

View 2 Replies

Visual Studio :: In Visual Studio 2010 Not Finding Default.aspx Error?

Apr 29, 2010

I am having an issue in VS 2010 trying to get even the default ASP.NET Web Application to run in Debug mode. I get the error:

"Unable to start program 'http://localhost:1443/Default.aspx'.

The system cannot find the file specified."

I am stumped here and cannot find anything out there with this error.

View 4 Replies

'Add Config Transforms' And One Click Publish Option Not Working When Upgraded From Visual Studio 2005 To Visual Studio 2010

Jul 28, 2010

I just recently upgrade my asp.net web project from visual studio 2005 to visual studio 2010. The upgrade was successful with no problems however im missing some features with this project. The One Click Publish feature(which is greyed out) in the header area of Visual Studio 2010 and the Add Config Transforms feature which is no where to be seen when you right click on web.config. When i create a new web project straight from visual studio 2010, these options work fine.

View 1 Replies

Web Forms :: Connection To Database From Local Visual Studio Not Working - Code In Separate File?

Mar 11, 2010

I recently started NOT putting code in separate file. I am using vb. I am having a problem with my database connection. The live code is working just fine....but when I try to debug locally. i get this error. connection to the database from my local visual studio is not working. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" %>
<script runat="server">
Const ConnectionString As String = "Data Source=1234.database.com;Initial Catalog=database_name;Persist Security Info=True;User =user_name;Password=123456"
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim MyConn As New Data.SqlClient.SqlConnection(ConnectionString)
Dim cmd As New Data.SqlClient.SqlCommand("Select count (*) from Classifieds where (ClassifiedCatagory = 'Antiques')", MyConn)
cmd.Connection.Open()
Dim count As Integer = cmd.ExecuteScalar() 'this contains the number of records
Label_Antiques.Text = count
cmd.Connection.Close()

View 4 Replies

Visual Studio :: How To Set In Visual Studio Startup Page Other Than Default.aspx

Nov 29, 2010

Is there any opportunity to change it in Visual Studio - not in IIS?

View 2 Replies

Visual Studio :: How To Test Web Application In Firefox/chrome/safari

Mar 13, 2011

I have created website in visual web developer 2010 express and would like to test it in firefox/chrome/safari. How to launch firefox/chrome/safari in visual web developer 2010 express?

View 1 Replies

Web Forms :: Code Caching When Making Change In Visual Studio

Oct 21, 2010

Within the Application_BeginRequest(Object sender, EventArgs e) method, I have code that checks whether the site is running on localhost or the live site. The code appears to be caching, when I make a change in visual studio, and do a refresh in IE or Firefox, the same old code appears to be running and the result in the browser is not what is expected.

View 3 Replies

Visual Studio :: Cookies Deleted After Browsing With Safari/chrome/firefox

Mar 18, 2011

I find that each time I run asp.net application in browser other than ie (safari/chrome/firefox) within visual studio, will cause all cookies on my pc deleted. This is really inconvienient since cookies contain important info on my pc. I'd like to know the solution for it.

View 5 Replies

How To Stop Showing Error In Visual Studio 2010

Feb 6, 2011

i used a jQuery plugin who try to call three or four method because some of them not implemented in some browser. code is working fine for me and it's work in all browser.when i try to debug the application in visual studio and internet explorer then i found the same errror everytime Microsoft JScript runtime error: Object doesn't support this property or method i see the same error every time. are it is not really so weird that they give me error every time even i put refresh and see error first then see the page in IE. i am trying to disable the script debugging for other and IE in IE but after that they never forget to give me error.well i am not want to go in the depth of this but someone tell if i can stop showing this window in my visual studio 2010.

View 2 Replies

Visual Studio 2008 SP1 - How To Stop Debugging In Other Browsers Than IE

Mar 1, 2010

Visual Studio has integrated debugging in IE, when you close IE, it stops debugging, and if you stop debugging, VS closes IE.

I want it to do the same thing with firefox/chrome!

View 2 Replies

Visual Studio :: How To Stop Development Server In 2010

Jul 7, 2010

When viewing an asp.net page in visual studio 2008, the asp.net development server icon shows up in the system tray. It can be stopped by right clicking on it and select "stop". In Visual Studio 2010, I do not see the icon any more. where the asp.net development server is? How to stop it?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved