Hello,
the question is how can I masquerade ASPX files behind HTML extension?
Thank you in advance.
--
With the best wishes,
Shaul Feldman 7 1460
Hi,
in IIS add mapping for .html/htm extensions to be processed by
aspnet_isapi.dll (see the setting for .aspx extension to get the idea). This
makes IIS to forward the file processing to ASp.NET. After that you would
need to map the .html extension in ASp.NET config files for proper
HttpHandler (so that ASp.NET itself figures that it needs handling and isn't
static content). In machine.config aspx extension is mapped as follows:
<httpHandlers>
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
</httpHandlers>
And you'd of course add a setting such that path is "*.html" and same
repeated for "*.htm" so that these file types are processed as normal aspx
pages.
Hope this helps.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:uL**************@tk2msftngp13.phx.gbl... Hello, the question is how can I masquerade ASPX files behind HTML extension? Thank you in advance. -- With the best wishes, Shaul Feldman
Thanks, the only problem is when I add the new setting for HTML, the OK
button is greyed out :(
What can be done?
--
With the best wishes,
Shaul Feldman
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:uS**************@tk2msftngp13.phx.gbl... Hi,
in IIS add mapping for .html/htm extensions to be processed by aspnet_isapi.dll (see the setting for .aspx extension to get the idea).
This makes IIS to forward the file processing to ASp.NET. After that you would need to map the .html extension in ASp.NET config files for proper HttpHandler (so that ASp.NET itself figures that it needs handling and
isn't static content). In machine.config aspx extension is mapped as follows:
<httpHandlers> <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" /> </httpHandlers>
And you'd of course add a setting such that path is "*.html" and same repeated for "*.htm" so that these file types are processed as normal aspx pages.
Hope this helps.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke "Shaul Feldman" <sf******@writeme.com> wrote in message news:uL**************@tk2msftngp13.phx.gbl... Hello, the question is how can I masquerade ASPX files behind HTML extension? Thank you in advance. -- With the best wishes, Shaul Feldman
It is greyd out if the path in the textbox is in short form. After choosing
the aspnet_isapii.dll (so that path is in the textbox), click focus to the
TextBox and then away from it. The path should change to different shape and
OK button to be clickable.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:eR**************@TK2MSFTNGP11.phx.gbl... Thanks, the only problem is when I add the new setting for HTML, the OK button is greyed out :( What can be done?
-- With the best wishes, Shaul Feldman "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:uS**************@tk2msftngp13.phx.gbl... Hi,
in IIS add mapping for .html/htm extensions to be processed by aspnet_isapi.dll (see the setting for .aspx extension to get the idea). This makes IIS to forward the file processing to ASp.NET. After that you
would need to map the .html extension in ASp.NET config files for proper HttpHandler (so that ASp.NET itself figures that it needs handling and isn't static content). In machine.config aspx extension is mapped as follows:
<httpHandlers> <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" /> </httpHandlers>
And you'd of course add a setting such that path is "*.html" and same repeated for "*.htm" so that these file types are processed as normal
aspx pages.
Hope this helps.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke "Shaul Feldman" <sf******@writeme.com> wrote in message news:uL**************@tk2msftngp13.phx.gbl... Hello, the question is how can I masquerade ASPX files behind HTML extension? Thank you in advance. -- With the best wishes, Shaul Feldman
I'm sorry, but something is not right.
I'm doing what you wrote, but nothing works fine.
I choose the dll, in text box I get "C:\WINDOWS\...\aspnet_isapi.dll", fill
in HTML extension in the next TextBox, but the OK button remains grey...
--
With the best wishes,
Shaul Feldman
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:On*************@TK2MSFTNGP10.phx.gbl... It is greyd out if the path in the textbox is in short form. After
choosing the aspnet_isapii.dll (so that path is in the textbox), click focus to the TextBox and then away from it. The path should change to different shape
and OK button to be clickable.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke "Shaul Feldman" <sf******@writeme.com> wrote in message news:eR**************@TK2MSFTNGP11.phx.gbl... Thanks, the only problem is when I add the new setting for HTML, the OK button is greyed out :( What can be done?
-- With the best wishes, Shaul Feldman "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:uS**************@tk2msftngp13.phx.gbl... Hi,
in IIS add mapping for .html/htm extensions to be processed by aspnet_isapi.dll (see the setting for .aspx extension to get the
idea). This makes IIS to forward the file processing to ASp.NET. After that you would need to map the .html extension in ASp.NET config files for proper HttpHandler (so that ASp.NET itself figures that it needs handling and isn't static content). In machine.config aspx extension is mapped as
follows: <httpHandlers> <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory"
/> </httpHandlers>
And you'd of course add a setting such that path is "*.html" and same repeated for "*.htm" so that these file types are processed as normal
aspx pages.
Hope this helps.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke "Shaul Feldman" <sf******@writeme.com> wrote in message news:uL**************@tk2msftngp13.phx.gbl... > Hello, > the question is how can I masquerade ASPX files behind HTML
extension? > Thank you in advance. > -- > With the best wishes, > Shaul Feldman > >
Did you include . (dot) with the extension. E.g ".html"?
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke
"Shaul Feldman" <sf******@writeme.com> wrote in message
news:eO**************@tk2msftngp13.phx.gbl... I'm sorry, but something is not right. I'm doing what you wrote, but nothing works fine. I choose the dll, in text box I get "C:\WINDOWS\...\aspnet_isapi.dll",
fill in HTML extension in the next TextBox, but the OK button remains grey...
-- With the best wishes, Shaul Feldman "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:On*************@TK2MSFTNGP10.phx.gbl... It is greyd out if the path in the textbox is in short form. After choosing the aspnet_isapii.dll (so that path is in the textbox), click focus to
the TextBox and then away from it. The path should change to different shape and OK button to be clickable.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke "Shaul Feldman" <sf******@writeme.com> wrote in message news:eR**************@TK2MSFTNGP11.phx.gbl... Thanks, the only problem is when I add the new setting for HTML, the
OK button is greyed out :( What can be done?
-- With the best wishes, Shaul Feldman "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:uS**************@tk2msftngp13.phx.gbl... > Hi, > > in IIS add mapping for .html/htm extensions to be processed by > aspnet_isapi.dll (see the setting for .aspx extension to get the idea). This > makes IIS to forward the file processing to ASp.NET. After that you would > need to map the .html extension in ASp.NET config files for proper > HttpHandler (so that ASp.NET itself figures that it needs handling
and isn't > static content). In machine.config aspx extension is mapped as follows: > > <httpHandlers> > <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" /> > </httpHandlers> > > And you'd of course add a setting such that path is "*.html" and
same > repeated for "*.htm" so that these file types are processed as
normal aspx > pages. > > Hope this helps. > > -- > Teemu Keiski > MCP, Microsoft MVP (ASP.NET), AspInsiders member > ASP.NET Forum Moderator, AspAlliance Columnist > http://blogs.aspadvice.com/joteke > > > > "Shaul Feldman" <sf******@writeme.com> wrote in message > news:uL**************@tk2msftngp13.phx.gbl... > > Hello, > > the question is how can I masquerade ASPX files behind HTML extension? > > Thank you in advance. > > -- > > With the best wishes, > > Shaul Feldman > > > > > >
Thanks a lot!
I was so silly - forgot the dot :)
Thanks again!
--
With the best wishes,
Shaul Feldman
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:Op***************@TK2MSFTNGP11.phx.gbl... Did you include . (dot) with the extension. E.g ".html"?
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke
"Shaul Feldman" <sf******@writeme.com> wrote in message news:eO**************@tk2msftngp13.phx.gbl... I'm sorry, but something is not right. I'm doing what you wrote, but nothing works fine. I choose the dll, in text box I get "C:\WINDOWS\...\aspnet_isapi.dll", fill in HTML extension in the next TextBox, but the OK button remains grey...
-- With the best wishes, Shaul Feldman "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:On*************@TK2MSFTNGP10.phx.gbl... It is greyd out if the path in the textbox is in short form. After choosing the aspnet_isapii.dll (so that path is in the textbox), click focus to the TextBox and then away from it. The path should change to different
shape and OK button to be clickable.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke "Shaul Feldman" <sf******@writeme.com> wrote in message news:eR**************@TK2MSFTNGP11.phx.gbl... > Thanks, the only problem is when I add the new setting for HTML, the OK > button is greyed out :( > What can be done? > > -- > With the best wishes, > Shaul Feldman > "Teemu Keiski" <jo****@aspalliance.com> wrote in message > news:uS**************@tk2msftngp13.phx.gbl... > > Hi, > > > > in IIS add mapping for .html/htm extensions to be processed by > > aspnet_isapi.dll (see the setting for .aspx extension to get the idea). > This > > makes IIS to forward the file processing to ASp.NET. After that
you would > > need to map the .html extension in ASp.NET config files for proper > > HttpHandler (so that ASp.NET itself figures that it needs handling and > isn't > > static content). In machine.config aspx extension is mapped as follows: > > > > <httpHandlers> > > <add verb="*" path="*.aspx"
type="System.Web.UI.PageHandlerFactory" /> > > </httpHandlers> > > > > And you'd of course add a setting such that path is "*.html" and
same > > repeated for "*.htm" so that these file types are processed as normal aspx > > pages. > > > > Hope this helps. > > > > -- > > Teemu Keiski > > MCP, Microsoft MVP (ASP.NET), AspInsiders member > > ASP.NET Forum Moderator, AspAlliance Columnist > > http://blogs.aspadvice.com/joteke > > > > > > > > "Shaul Feldman" <sf******@writeme.com> wrote in message > > news:uL**************@tk2msftngp13.phx.gbl... > > > Hello, > > > the question is how can I masquerade ASPX files behind HTML extension? > > > Thank you in advance. > > > -- > > > With the best wishes, > > > Shaul Feldman > > > > > > > > > > > >
Hi,
I did everything as you have meantioned, but unfortunately, the ASPX
extension still remains there...
whe I click to some other page from the main page, I get the extension with
the filename.
Weird... I thought this would work. Any ideas?
--
With the best wishes,
Shaul Feldman
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:Op***************@TK2MSFTNGP11.phx.gbl... Did you include . (dot) with the extension. E.g ".html"?
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke
"Shaul Feldman" <sf******@writeme.com> wrote in message news:eO**************@tk2msftngp13.phx.gbl... I'm sorry, but something is not right. I'm doing what you wrote, but nothing works fine. I choose the dll, in text box I get "C:\WINDOWS\...\aspnet_isapi.dll", fill in HTML extension in the next TextBox, but the OK button remains grey...
-- With the best wishes, Shaul Feldman "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:On*************@TK2MSFTNGP10.phx.gbl... It is greyd out if the path in the textbox is in short form. After choosing the aspnet_isapii.dll (so that path is in the textbox), click focus to the TextBox and then away from it. The path should change to different
shape and OK button to be clickable.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke "Shaul Feldman" <sf******@writeme.com> wrote in message news:eR**************@TK2MSFTNGP11.phx.gbl... > Thanks, the only problem is when I add the new setting for HTML, the OK > button is greyed out :( > What can be done? > > -- > With the best wishes, > Shaul Feldman > "Teemu Keiski" <jo****@aspalliance.com> wrote in message > news:uS**************@tk2msftngp13.phx.gbl... > > Hi, > > > > in IIS add mapping for .html/htm extensions to be processed by > > aspnet_isapi.dll (see the setting for .aspx extension to get the idea). > This > > makes IIS to forward the file processing to ASp.NET. After that
you would > > need to map the .html extension in ASp.NET config files for proper > > HttpHandler (so that ASp.NET itself figures that it needs handling and > isn't > > static content). In machine.config aspx extension is mapped as follows: > > > > <httpHandlers> > > <add verb="*" path="*.aspx"
type="System.Web.UI.PageHandlerFactory" /> > > </httpHandlers> > > > > And you'd of course add a setting such that path is "*.html" and
same > > repeated for "*.htm" so that these file types are processed as normal aspx > > pages. > > > > Hope this helps. > > > > -- > > Teemu Keiski > > MCP, Microsoft MVP (ASP.NET), AspInsiders member > > ASP.NET Forum Moderator, AspAlliance Columnist > > http://blogs.aspadvice.com/joteke > > > > > > > > "Shaul Feldman" <sf******@writeme.com> wrote in message > > news:uL**************@tk2msftngp13.phx.gbl... > > > Hello, > > > the question is how can I masquerade ASPX files behind HTML extension? > > > Thank you in advance. > > > -- > > > With the best wishes, > > > Shaul Feldman > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Guadala Harry |
last post by:
In an aspx file I have declared a hidden field like this:
<input id="hTestVal" type=hidden value="-1" runat="server">
Defined in the code-behind like this:
protected...
|
by: Paolo Pignatelli |
last post by:
I have an aspx code behind page that goes something like this in the HTML
view:
<asp:HyperLink id=HyperLink1 runat="server"
NavigateUrl='<%#"mailto:" &...
|
by: Paul |
last post by:
I want to set the page title and/or a form hidden field programatically
through ASP.Net.
I do not want to use something like...
<% sTitle ="My Title" %>
<html><title><%=sTitle%></title>.....
...
|
by: Alan Silver |
last post by:
Hello,
I have a page that gets passed an ID in the query string. It then uses
this ID to pull info out of a database and populate controls on the
page. When the page is posted back, the query...
|
by: John Rivers |
last post by:
Hello,
What good reason there is for not allowing methods in ASPX pages I
can't imagine, but here is how to get around that limitation:
(START)
<body MS_POSITIONING="FlowLayout">
<form...
| |
by: xenophon |
last post by:
I added a Hidden Form Field to a form in the code behind.
The value is being set in JavaScript client-side, but it is not
persisting to the server in the PostBack.
I know the value is being set...
|
by: Joe |
last post by:
Hello All:
I have two webforms (WebForm1.aspx and WebForm2.aspx) that inherit from a
base class called BasePage.aspx. BasePage.aspx has no user interface but
inherits System.Web.UI.Page...
|
by: krallabandi |
last post by:
I have a hidden control
<input id="FieldSortOrder" type="hidden" name="FieldSortOrder"
runat="server"> in a ascx page. I want to store some value in this
control in the code behind page.
...
|
by: Bob |
last post by:
Hi,
I'm not sure of the priority in execution between aspx and aspx.vb code.
I define a tag which must be invisible as long as the user has not clicked
in the dropdownlist.
The problem is that...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
|
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...
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |