Make Visual Studio Treat .htm Files Like .aspx Files?

Apr 15, 2010

I've inherited a bunch of code that has server script inside of .htm files.

On IIS, a handler mapping pumps.Htm pages though the asp.net engine.

Unfortunately, visual studio doesn't notice that they should be treated as code.

Is there any way to make VS treat .Htm files as code/aspx files?

View 3 Replies


Similar Messages:

Open Aspx Files Directly By Clicking On Them Like Html Files Without From Within Visual Studio Or Visual Web Dev?

Feb 24, 2011

is it possible to open aspx files directly by clicking on them like html files without from within visual studio or visual web dev?

View 2 Replies

Visual Studio :: Not Able To Open Aspx.vb Files In VWD

Mar 28, 2010

I have a problem within a project in Visual Web Developer. The program will not allow me to open the aspx.vb file associated with an aspx file when I choose the "View Code" option. The aspx.vb file exists; however the program is prevented from loading it and seeing it in Solutions Explorer.

The problem may be related to how the entire project is loaded -- loading it as a project vs. as a website. When I load it as a project, I have compilation errors that do not exist otherwise, but can see the aspx.vb files. When it is loaded as a website, I can't open the aspx.vb files as described above.

View 5 Replies

C# - Add Region In Visual Studio In Aspx Files?

Mar 9, 2011

I use asp.net with code behind and c#.

So I have two file for every .aspx page in VS 2010.

In .aspx.cs page I am able to add regions in my code using:

#region Name Region
#endregion

My questions:

How to do it in file .aspx? #region seems working only in .cs file. organize better my code both for .aspx and .cs file? Do you know the keyboard shortcuts to expand or collapse all my region in my code?

View 2 Replies

Visual Studio :: How To Make VS Publish Ism, Ismc, Dat Files

Oct 13, 2010

Smooth Streaming requires .ism, .ismc, .dat files to make the Silverlight video player page work. If the "Only files needed to run this application" is selectd in the "Package/Publish Web" tab, these files are not published. Now I have to select "All files in this project" to publish them but this is undesirable because it also pushes all the source code files to the server. Is there any way to specifically tell VS that .ism, ismc and .dat files are required to run the application?

View 4 Replies

Visual Studio :: Cannot Open Aspx Files In IDE When Away For Company Network?

Feb 3, 2010

I have a NEW company issued Dell laptop just installed VS 2008 Pro. When I am at work logged into the network all is well. When I go home and try to work is when I have issues (on or off of VPN does not mater; I get the same issue.). I open VS 2008 and try to open any aspx file in the IDE it freezse and will stay that way. I can open the ebCongif file if I try it first. Just cannot open aspx files....I have to open the task manager to kill the process. If any one has had this issue ...Also because we only have dot net framework 2.0 on our servers I am working with 2.0 in VS 2008.

View 6 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 :: Want To Do A Reverse 'search In All Files', So It Returns Files That Don't Contain "keyword?

May 6, 2010

I basically want to do a reverse 'search in all files', so it returns files that don't contain "keyword".Does anyone know how to do this, or the regex used, etc?

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

.net - Editing Aspx/ascx Files Randomly Disabled In Visual Studio 2010?

Aug 10, 2010

I'll be debugging a site in Visual Studio 2010 and editing an *.aspx or *.ascx file, and without warning, it will lock up so that I can't edit it. There's no message or anything, I just can't type or make any changes. The only way to start editing again is to stop debugging, close the editing window, and then find whatever file I was working on and reopen it. It's a huge pain in the you-know-what. My colleagues are experiencing the same thing, so it's apparently not something with my particular setup. What's the explanation, and how can we make it stop?

Note 1: I've reported this to Microsoft here. If you've experienced this as well, please go there and vote up the bug report.

Note 2: This is not VSS-related, at least in my case. We use VisualSVN, which doesn't use file-system-level locking to mark files as checked out.

View 9 Replies

Visual Studio :: Opening CSS Files As Text Files?

Mar 25, 2010

My Visual Studio 2005 program doesn't open CSS files properly - when I open them in VS, it opens them as a text file. It is annoying because if I do something wrong, it doesn't show up the error and I have to sift through it all to try and find out what is wrong. Plus it doesn't show up the hints for the attributes.

View 5 Replies

Visual Studio :: Can't Delete Files From Temporary Files

Mar 2, 2011

What's the easiest way to delete all the files from my Temporary ASP.NET files in .NET 4.0 on my development box? It seems like I have to shutdown Visual Studio 2010, stop IIS, and then it will let me. Is there a simpler way?

View 1 Replies

Visual Studio :: 2010 - Finding Assemblies In Program Files Vs Program Files X86?

Jul 3, 2010

I have a VS2010 project that I want to move back and forth between an x86 and an x64 machine. On the x86 machine, several assemblies are located in Program Files, and the path of the assemblies are shown as c:Program Files...... When I move this project to the x64 machine, the same assemblies are located in C:Program Files (x86).... Is there a way that I can confugure VS2010 so I don't have to manually change the path when I move the project from one machine to another?

View 1 Replies

Visual Studio - What Is Best Option In Visual Studio 2010 To Sync Project Files Between Home & Work Computers

Feb 14, 2011

Im working on a website project with Visual Studio 2010 from 2 different computers (home & work).
In Dreamweaver Im used to FTP to upload/download files to/from a webserver to syncronice my files on the current computer Im working on.What is best option in Visual Studio 2010 to sync project files between home & work computers? I have seen there is a built in FTP, but seems only it can upload files, limited functionality?

View 1 Replies

Web Development - Redirecting Old Asp Files To New Aspx Files (Permanent Redirect, SEO)

Jun 28, 2010

I upgraded my site from asp to asp.net.This means that all of my previous asp files became obsolete.I don't want to lose my Google Ranking of the old pages.

What is the proper way to redirect?I tried to catch all of the old asp pages is my 404 and then to:

if Request.QueryString("aspxerrorpath").contains("index.asp") = true then
Response.Status = "301 Moved Permanently"
Response.AddHeader("Location", "http://www.domain.com/index.aspx")
Response.Redirect("/index.aspx")
end if


but it doesn't catch asp pages, only aspx.

View 3 Replies

MVC :: Run .sql-files From Visual Studio?

Nov 24, 2010

How to run .sql files from Visual Studio? I want to have a separate project (what kind of?) where I store .sql-files and then be able to click on them as choose "Run" or something similar to be able to run the code agains a predefined SQL Server.

View 3 Replies

Auto Generating Code-behind Files From .aspx Files?

Nov 9, 2010

I have a designer working on several pages in Dreamweaver. The designer is creating .aspx files with the Page directive at the top. These are getting shipped to me and I'm adding them to the Visual Studio ASP.NET WebForms Web Application Project. The problem is that there's no code-behind file by default, and I'm trying to find a shortcut to have them autogenerated as if I've added a fresh page from Visual Studio.

View 3 Replies

How To Open .aspx Without Visual Studio And Make It LAN

Mar 27, 2011

I'm currently dealing with my final year project and of course, later I might need to present this whole things to my lecturer.

So, I would like to ask you guys about how to open my website without Visual Studio and make it LAN (can be accessed by two or more computer through LAN).

View 7 Replies

PNG, Why Is Visual Studio Making Download PNG Files

Jan 23, 2010

i write and my page loads it find. When i click on the link instead of having the image show on screen it promps me to download it. Why? How can i make it display in the browser? gif and jpg both display in the browser.-edit- i am using FireFox 3.5 there is no code that serves it, its just a link and the file exist in my folder. The link is like http://localhost:1737/a/b/file.png. IE 8 displays the png w/o making me download. I havent tried with other browsers but surely i click on direct png link in firefox on every site mine (in VS) should act the same.

View 1 Replies

Visual Studio :: 2010 Locking Files?

Aug 13, 2010

VS2010 keeps locking my .aspx files so I can't edit them. I have to stop the project, close and reopen the file. Is there a setting causing this (it doesn't happen on my home machine)?

View 1 Replies

Visual Studio :: Designer Files Not Updating ?

Sep 23, 2010

I have a problem in which some nested controls on a page are not updated in the designer file. I have deleted the designer file, selected Convert to Web Application, but still the controls are missing.

I know there is a supposed fix at http://blogs.msdn.com/b/webdevtools/archive/2010/03/05/hotfix-for-issue-with-auto-generated-designer-files-not-adding-controls.aspxI am running VS 2010 Version 10.0.30319.1 RTMRel.

View 3 Replies

MVC :: WebMatrix From Cshtml Files In Visual Studio?

Dec 16, 2010

I'm doing something wrong, but for the life of me can't figure out what. (Maybe it's all the beta software I'm using to build this website ;-) )I'm trying to use the Facebook helpers, which use the WebMatrix.Data and WebMatrix.WebData libraries. These work fine from my class files, but apparently I can't use them in my .cshtml files.Anybody run into this? Alle references to classes in these libraries break my site (not my build btw?). And yes, they are referenced.

View 6 Replies

Visual Studio :: Files Missing After Publishing?

Apr 9, 2010

I have a couple files that are missing after a I publish a web application project in VS 2008. I know that the files need to be included in the solution and they are. I have tried excluding them and including them to hopefully reset whatever is missing these files in the first plac but that had no effect.

Ultimately, I need this to work on the command line with msbuild.exe, but I get the same results when I publish through VS.

Knowing that the files are already included in the project, what else do I need to do to get these to files to be copied over in the publish/build?

View 3 Replies

Visual Studio :: Disable The Creation Of .bak Files?

Dec 10, 2010

How do i disable the creation of .bak files in visual studio 2008 for my asp.net application?

View 2 Replies







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