473,513 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

hidden ASPX behind HTML

Hello,
the question is how can I masquerade ASPX files behind HTML extension?
Thank you in advance.
--
With the best wishes,
Shaul Feldman
Nov 18 '05 #1
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

Nov 18 '05 #2
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


Nov 18 '05 #3
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



Nov 18 '05 #4
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
>
>



Nov 18 '05 #5
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
> >
> >
>
>



Nov 18 '05 #6
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
> > >
> > >
> >
> >
>
>



Nov 18 '05 #7
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
> > >
> > >
> >
> >
>
>



Nov 18 '05 #8

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

Similar topics

2
5115
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...
6
5479
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:" &amp;...
14
3462
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>..... ...
12
7424
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...
29
3646
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...
2
3263
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...
4
1729
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...
2
2619
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. ...
2
1235
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...
0
7267
marktang
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,...
0
7175
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...
0
7391
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,...
0
7542
tracyyun
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...
0
5697
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,...
0
3247
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...
0
1609
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 ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
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...

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.