473,799 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to config VS.NET to recognize other file extensions as aspx?

Bob
I noticed that some of the Microsoft site pages have the extension name of
mspx. It's easy to config IIS to map a particular extension name to the
ASP.NET dll for production purpose. However I can't figure out how to config
VS.NET to recognize my own file extension name e.g. *.bob, as ASPX pages.
Is it matter of creating a set of template? If so, would it compile
correctly? My goal is for VS.NET to treat a different extension name the
same as aspx, so I can develop web pages with that extension name the same
way I do aspx.

Thanks
Bob
Nov 18 '05 #1
6 1448
Go into IIS | Home Directory | Config and from there set the extension that
you would like.
" Bob" <bo*******@yaho o.com> wrote in message
news:O$******** *******@TK2MSFT NGP10.phx.gbl.. .
I noticed that some of the Microsoft site pages have the extension name of
mspx. It's easy to config IIS to map a particular extension name to the
ASP.NET dll for production purpose. However I can't figure out how to config VS.NET to recognize my own file extension name e.g. *.bob, as ASPX pages.
Is it matter of creating a set of template? If so, would it compile
correctly? My goal is for VS.NET to treat a different extension name the
same as aspx, so I can develop web pages with that extension name the same
way I do aspx.

Thanks
Bob

Nov 18 '05 #2
Bob
I know how to set it up in IIS so IIS knows how to treat a particular
extension. My question was how to do it in VS.NET, the IDE. For example,
VS.NET displays .aspx different from .xml, how does it determine and more
importantly how do I customize?

"michael" <mp********@sbc global.net> wrote in message
news:em******** ********@TK2MSF TNGP11.phx.gbl. ..
Go into IIS | Home Directory | Config and from there set the extension that you would like.
" Bob" <bo*******@yaho o.com> wrote in message
news:O$******** *******@TK2MSFT NGP10.phx.gbl.. .
I noticed that some of the Microsoft site pages have the extension name of mspx. It's easy to config IIS to map a particular extension name to the
ASP.NET dll for production purpose. However I can't figure out how to

config
VS.NET to recognize my own file extension name e.g. *.bob, as ASPX pages. Is it matter of creating a set of template? If so, would it compile
correctly? My goal is for VS.NET to treat a different extension name the same as aspx, so I can develop web pages with that extension name the same way I do aspx.

Thanks
Bob


Nov 18 '05 #3
http://www.google.com/search?hl=en&l...ile+extensions

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com
" Bob" <bo*******@yaho o.com> wrote in message
news:O$******** *******@TK2MSFT NGP10.phx.gbl.. .
I noticed that some of the Microsoft site pages have the extension name of
mspx. It's easy to config IIS to map a particular extension name to the
ASP.NET dll for production purpose. However I can't figure out how to config VS.NET to recognize my own file extension name e.g. *.bob, as ASPX pages.
Is it matter of creating a set of template? If so, would it compile
correctly? My goal is for VS.NET to treat a different extension name the
same as aspx, so I can develop web pages with that extension name the same
way I do aspx.

Thanks
Bob

Nov 18 '05 #4
Hi Bob,

I suppose you also want to know how to use a hammer to screw in a screw?
ISAPI mappings are done through IIS. That is the tool to use for mapping
ISAPIs. VS.Net is the tool to use for developing software. You could,
ostensibly, write an extension for the IDE that enables you to set
configuration settings in IIS, but it sure would be a lot of trouble,
compared to opening the IIS Admin snap-in and doing it that way.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

" Bob" <bo*******@yaho o.com> wrote in message
news:e4******** ******@TK2MSFTN GP10.phx.gbl...
I know how to set it up in IIS so IIS knows how to treat a particular
extension. My question was how to do it in VS.NET, the IDE. For example,
VS.NET displays .aspx different from .xml, how does it determine and more
importantly how do I customize?

"michael" <mp********@sbc global.net> wrote in message
news:em******** ********@TK2MSF TNGP11.phx.gbl. ..
Go into IIS | Home Directory | Config and from there set the extension that
you would like.
" Bob" <bo*******@yaho o.com> wrote in message
news:O$******** *******@TK2MSFT NGP10.phx.gbl.. .
I noticed that some of the Microsoft site pages have the extension name of
mspx. It's easy to config IIS to map a particular extension name to
the ASP.NET dll for production purpose. However I can't figure out how to

config
VS.NET to recognize my own file extension name e.g. *.bob, as ASPX

pages. Is it matter of creating a set of template? If so, would it compile
correctly? My goal is for VS.NET to treat a different extension name the same as aspx, so I can develop web pages with that extension name the same way I do aspx.

Thanks
Bob



Nov 18 '05 #5
There is a PowerToy for VS.Net at http://www.gotdotnet.com/team/ide/ called
VSTweak that can be used to define your own extensions and make the IDE
handle them like other known file types.

/Per Salmi

" Bob" <bo*******@yaho o.com> skrev i meddelandet
news:e4******** ********@TK2MSF TNGP10.phx.gbl. ..
I know how to set it up in IIS so IIS knows how to treat a particular
extension. My question was how to do it in VS.NET, the IDE. For example,
VS.NET displays .aspx different from .xml, how does it determine and more
importantly how do I customize?

"michael" <mp********@sbc global.net> wrote in message
news:em******** ********@TK2MSF TNGP11.phx.gbl. ..
Go into IIS | Home Directory | Config and from there set the extension that
you would like.
" Bob" <bo*******@yaho o.com> wrote in message
news:O$******** *******@TK2MSFT NGP10.phx.gbl.. .
I noticed that some of the Microsoft site pages have the extension name of
mspx. It's easy to config IIS to map a particular extension name to
the ASP.NET dll for production purpose. However I can't figure out how to

config
VS.NET to recognize my own file extension name e.g. *.bob, as ASPX

pages. Is it matter of creating a set of template? If so, would it compile
correctly? My goal is for VS.NET to treat a different extension name the same as aspx, so I can develop web pages with that extension name the same way I do aspx.

Thanks
Bob



Nov 18 '05 #6
Bob
Thanks a lot Kyle and Per. I'll check out the the leads you guys provided.

For Kevi and michael, you guys obviously don't know what I'm talking about.
Thanks anyway.

Bob
"Kyle Alons" <re***@to.newsg roup> wrote in message
news:OG******** ********@TK2MSF TNGP10.phx.gbl. ..
http://www.google.com/search?hl=en&l...ile+extensions
--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com
" Bob" <bo*******@yaho o.com> wrote in message
news:O$******** *******@TK2MSFT NGP10.phx.gbl.. .
I noticed that some of the Microsoft site pages have the extension name of mspx. It's easy to config IIS to map a particular extension name to the
ASP.NET dll for production purpose. However I can't figure out how to

config
VS.NET to recognize my own file extension name e.g. *.bob, as ASPX pages. Is it matter of creating a set of template? If so, would it compile
correctly? My goal is for VS.NET to treat a different extension name the same as aspx, so I can develop web pages with that extension name the same way I do aspx.

Thanks
Bob


Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
2867
by: n3crius | last post by:
hi, i just got a web host with asp.net , seemed really cool. aspx with the c# or vb IN the actual main page run fine, but when i use codebehind and make another source file ( a .cs) to go with the aspx (as you would realistically) I get this : Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root...
10
2859
by: Ron Weldy | last post by:
I am working on a website that someone else has set up. They have a web.config file with a customerrors element that points the error handling to a special aspx page. <customErrors mode="RemoteOnly" defaultRedirect="/customerrors/500.aspx"> <error statusCode="404" redirect="/customerrors/404.html" /> </customErrors> When running pages directly on the server it still redirects when a error occurs, even though it should not judging by...
4
1353
by: John Mick | last post by:
Hi, I have renamed aspx to .ret and would like visual studio to recognize .ret file as an aspx file recognize = show designer, intellisense, group up with corresponding codebehind in solution explorer, etc. Many thanks J
3
6448
by: Ralf Ziller | last post by:
I have a ASP.Net application with web.config files in subfolders. This works fine with the Visual Studio development server. But after publication to an IIS6 webserver a config file inside a subsubfolder is completely ignored, regardless of the settings it defines. Any ideas what could cause this?
0
4671
by: mazdotnet | last post by:
Hi, I'm using UrlRewriter.NET in my project which is causing problems when in Vista (same code works fine on Windows XP). I'm going by the example in Scott's Blog http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx. In Vista when I press F5 or Control F5 I get an error message saying HTTP Error 500.19 - Internal Server Error Description: The requested page cannot be accessed because the related...
2
2928
by: none | last post by:
All, I was wondering is their a way of dealing with subStatusCode's with in the webconfig file? I unfortunately don't have access to anything other then webconfig and qould perfer to set in code rater then my webhost's control panel. I've even tried: <customErrors mode="On" defaultRedirect="/pages/error.aspx" />
6
1846
by: =?Utf-8?B?TUNN?= | last post by:
The following sections appears in my web.config file. <configuration> <system.web> <compilation> <assemblies> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
10
2054
by: =?Utf-8?B?TUNN?= | last post by:
What does this do? <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" /> </dependentAssembly>
2
7397
by: =?Utf-8?B?YW5vbg==?= | last post by:
I am not sure if this is the right forum. Environment : Windows server 2008, IIS 7.0 I get the 'Could not load the file or assembly 'blowery.web.httpCompress' or one of its dependencies. The system cannot fond the file specified error. When I comment out the line in the web config file, I get the error on the line following that. I have all the dll files in the bin folder.
0
10488
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6808
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.