Friday, March 16, 2012
Omitting the .ASPX Extension
typing the page name into the browser's address bar without having to also
include the .aspx extension.
Example: WWW.MySite.COM/Login
and NOT
WWW.MySite.com/Login.aspx
Thanks!All it would take in the example you provided just having "Login" folder and
making Login.aspx a default file.
"RC" wrote:
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
>
>
I am not really sure, why you want to do that. To do for every page, its
simply not possible. Because, IIS uses the requested page extension to
figure out where to send the request. For a typical asp.net page, IIS looks
at its extension .aspx, and then forward this request to aspnet_isapi.dll,
which handles the typical asp.net requests, similarly for other kinds of
pages other isapi dll's registered in the IIS metabase.
Kumar Reddi
http://kumarreddi.blogspot.com
"RC" <a@.b.com> wrote in message news:e24wKFa1EHA.324@.TK2MSFTNGP10.phx.gbl...
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
>
Well try looking at :-
HTTP Handlers and HTTP Modules in ASP.NET
http://www.microsoft.com/india/msdn/articles/57.aspx
U could have your own extensions apart from ASPX if u wish..
Enjoy.
Patrick
"RC" wrote:
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
>
>
Yes what Patrick said is true, but without extensions its not possible.
That's what I was saying in my previous post
--
Kumar Reddi
http://kumarreddi.blogspot.com
"Patrick.O.Ige" <PatrickOIge@.discussions.microsoft.com> wrote in message
news:4731A862-C5D1-48E4-BF9D-136676C27ADE@.microsoft.com...
> Well try looking at :-
> HTTP Handlers and HTTP Modules in ASP.NET
> http://www.microsoft.com/india/msdn/articles/57.aspx
> U could have your own extensions apart from ASPX if u wish..
> Enjoy.
> Patrick
>
> "RC" wrote:
>
also
IIS relies on file extensions in the HTTP request to figure out which
handler should honor the request. Handlers are mapped by extension. So the
only way you can practically do this is to create a folder called "Login"
and put your code in default.aspx.
Klaus H. Probst, MVP
http://www.vbbox.com/
"RC" <a@.b.com> wrote in message news:e24wKFa1EHA.324@.TK2MSFTNGP10.phx.gbl...
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
>
Omitting the .ASPX Extension
typing the page name into the browser's address bar without having to also
include the .aspx extension.
Example: WWW.MySite.COM/Login
and NOT
WWW.MySite.com/Login.aspx
Thanks!All it would take in the example you provided just having "Login" folder and
making Login.aspx a default file.
"RC" wrote:
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
>
I am not really sure, why you want to do that. To do for every page, its
simply not possible. Because, IIS uses the requested page extension to
figure out where to send the request. For a typical asp.net page, IIS looks
at its extension .aspx, and then forward this request to aspnet_isapi.dll,
which handles the typical asp.net requests, similarly for other kinds of
pages other isapi dll's registered in the IIS metabase.
--
Kumar Reddi
http://kumarreddi.blogspot.com
"RC" <a@.b.com> wrote in message news:e24wKFa1EHA.324@.TK2MSFTNGP10.phx.gbl...
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
Well try looking at :-
HTTP Handlers and HTTP Modules in ASP.NET
http://www.microsoft.com/india/msdn/articles/57.aspx
U could have your own extensions apart from ASPX if u wish..
Enjoy.
Patrick
"RC" wrote:
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
>
Yes what Patrick said is true, but without extensions its not possible.
That's what I was saying in my previous post
--
Kumar Reddi
http://kumarreddi.blogspot.com
"Patrick.O.Ige" <PatrickOIge@.discussions.microsoft.com> wrote in message
news:4731A862-C5D1-48E4-BF9D-136676C27ADE@.microsoft.com...
> Well try looking at :-
> HTTP Handlers and HTTP Modules in ASP.NET
> http://www.microsoft.com/india/msdn/articles/57.aspx
> U could have your own extensions apart from ASPX if u wish..
> Enjoy.
> Patrick
>
> "RC" wrote:
> > I'd like know what it takes to enable users to open a specific page by
> > typing the page name into the browser's address bar without having to
also
> > include the .aspx extension.
> > Example: WWW.MySite.COM/Login
> > and NOT
> > WWW.MySite.com/Login.aspx
> > Thanks!
IIS relies on file extensions in the HTTP request to figure out which
handler should honor the request. Handlers are mapped by extension. So the
only way you can practically do this is to create a folder called "Login"
and put your code in default.aspx.
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"RC" <a@.b.com> wrote in message news:e24wKFa1EHA.324@.TK2MSFTNGP10.phx.gbl...
> I'd like know what it takes to enable users to open a specific page by
> typing the page name into the browser's address bar without having to also
> include the .aspx extension.
> Example: WWW.MySite.COM/Login
> and NOT
> WWW.MySite.com/Login.aspx
> Thanks!
Omitting HTTP headers.
How can someone make the ASP.NET preprocessor tonot send the HTTP headers when processing an .aspx page?
The reason for this is that in a project I have to use an #exec SSI toget output from an .aspx page to display in the including webpage.However the HTTP headers are always sent with the page (and thus arealso included in the including webpage - and having headersprinted there just isn't nice).
If I use a simple ASP page this doesnot happen, so therefore I guess it's related to the ASP.NETpreprocessor - I've already tried using the HttpResponse.ClearHeaders()method for both the Init and PreRender events with no success.
Cut-Me-Own-Throat Dibbler
Are you talking about the other HTTP Header (X-Powered-By: ASP.NET)? Ifyou are, then that is an IIS configuration thing. Right click on theweb site in IIS Manager and go to "Properties" and then on the "HTTPHeaders".
Also, are you caching the page on the client side? Sending a HTTPHeader is 'compulsory' - you can't cache on the client without sendingthe header.
No, I am talking about all the HTTP headers.
I do not want the .aspx file to return any headers what-so-ever because its output is being included in a separate file.
As I mentioned above I don't have that problem if I use an ASP page (oreven any other CGI script that doesn't return HTTP headers), howeverthat is not the case with ASP.NET pages - I even tried using a customHttpHandler and still no luck. Is there some property or directive I am missing?
*bump*
Any idea? Anyone? :)
Hi,
Just wondering if a solution to this was ever found. I have a similar problem and will give some background first. (Note that I am a newb to C#/asp.net/mysql etc. etc. so excuse the terminology used).
We are building a web application that uses Flash as it's front end. I am creating the interface in c# to maintain a MySQL database in the background. Parameters are fed into a .aspx page (either in the browser URL or directly from Flash). Getdata uses Querystring to call MySql Stored procedures and then returns a response (using Response.Write) to the browser. Here lies the problem!
Flash expects only a response and no headers. The response in the browser looks fine, but when viewing source (in IE6 view- source), the source contains HTML headers with Meta tags(and no response). I am told by the Flash developer that only the response should appear when View - Source is selected.
I am running the site using IIS, and when testing locally no headers appear, all looks fine. Only when accessing the site externally (i.e. over the web) do the headers appear.
Any help would be appreciated, as mentioned I'm new to this stuff, so hopefully there's a simple/obvious solution that anyone in 4th grade could work out, but it's so far escaped me.
Regards
omitting config values
machine.config file?
In particular, if <compilation> is commented out, what
value will be used for numRecompilesBeforeAppRestart?
Thanks,
EricI'm trying to understand what the <compilation> section
affects. Does the numRecompilesBeforeAppRestart attribute
relate to MSIL to machine compilation while the
<compilers> elements refer to compilation from source to
MSIL?
>--Original Message--
>What values get used if certain items are omitted from
the
>machine.config file?
>In particular, if <compilation> is commented out, what
>value will be used for numRecompilesBeforeAppRestart?
>Thanks,
>Eric
>.
Hi,
The <compilation> tag refer to compilation from source to
MSIL and such all its attribute.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Omitting columns from Stored Procedures, DAL, BLL and PL
I have been trying to do this with no luck. I get an 'Exception has been thrown by the target of the invocation.' error after the End Get here.
PrivateReadOnlyProperty Adapter()As System.Data.SqlClient.SqlDataAdapter
Get
If (Me._adapterIsNothing)Then
Me.InitAdapter
EndIf
ReturnMe._adapter
EndGet
EndProperty
The app setup is an SQL Server / Stored Procedured / UDFs // DAL / BLL / PL. I omitted two columns from the table. The columns are currently being used by another app but are being phased out with this new app so they will eventually be deleted. Is this the proper way to do this or do I have to include them in the SP / DAL / BLL until the columns are actually deleted?
Your new application should be able to completely ignore the 2 columns you are depreciating, provided that the two columns are marked as allowing null values.
If the two column "are" marked as allowing null values and it is generating this error, I suppose you could check for triggers or dependencies on the columns. Otherwise your error is probably coming from somewhere else other than the missing 2 columns.