How to...
Messages   Related Types
This message was discovered on ASPFriends.com 'aspnghttphandlers' list.


Tim Heuer
This is a multi-part message in MIME format.

------=_NextPart_000_0010_01C1F5E7.C626DA10
Content-Type: multipart/alternative;
    boundary="----=_NextPart_001_0011_01C1F5E7.C626DA10"

------=_NextPart_001_0011_01C1F5E7.C626DA10
Content-Type: text/plain;
    charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I want to enable my site for better indexing through search engines, =
etc.

What I want is something like:

http://mysite.com/press/2002/05/01/default.aspx
But really it would display content for
http://mysite.com/press/pressrelease.aspx?date=3D05012002

I have a handler that will capture the request but have 2 questions.

(1) Right now I could only get the handler to apply for path=3D"*"...I =
want to
limit it to whenever someone requests the "/press/" content...
(2) In my handler I can't figure out how to execute that logic... I =
tried a
context.Server.Execute("/press/pressrelease.aspx?date=3D05012002") but =
that
didn't work

Thanks in advance,

Tim

_________________
Tim Heuer

------=_NextPart_001_0011_01C1F5E7.C626DA10
Content-Type: text/html;
    charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.5762.3">
<TITLE>How to...</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Tahoma">I want to enable my site for better =
indexing through search engines, etc.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Tahoma">What I want is something like:</FONT>
</P>

<P><A HREF=3D"http://mysite.com/press/2002/05/01/default.aspx"><U><FONT =
COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Tahoma">http://mysite.com/press/2002/05/01/default.aspx</FONT></U=
></A>

<BR><FONT SIZE=3D2 FACE=3D"Tahoma">But really it would display content =
for </FONT><A =
HREF=3D"http://mysite.com/press/pressrelease.aspx?date=3D05012002"><U><FO=
NT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Tahoma">http://mysite.com/press/pressrelease.aspx?date=3D05012002=
</FONT></U></A>
</P>

<P><FONT SIZE=3D2 FACE=3D"Tahoma">I have a handler that will capture the =
request but have 2 questions.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Tahoma">(1) Right now I could only get the =
handler to apply for path=3D"*"…I want to limit it to =
whenever someone requests the "/press/" =
content…</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Tahoma">(2) In my handler I can't figure out =
how to execute that logic…  I tried a =
context.Server.Execute("/press/pressrelease.aspx?date=3D05012002&quo=
t;) but that didn't work</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Tahoma">Thanks in advance,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Tahoma">Tim</FONT>
</P>
<BR>

<P><B><FONT COLOR=3D"#000080" SIZE=3D2 =
FACE=3D"Tahoma">_________________<BR>
</FONT><FONT COLOR=3D"#000080" SIZE=3D1 FACE=3D"Tahoma">Tim =
Heuer</FONT></B>
</P>
<BR>

</BODY>
</HTML>
------=_NextPart_001_0011_01C1F5E7.C626DA10--

------=_NextPart_000_0010_01C1F5E7.C626DA10
Content-Type: application/ms-tnef;
    name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
    filename="winmail.dat"

eJ8+IjcXAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGAAcAAQAAAAAAAAEGgAMADgAAANIHBQAH
ABAANQAtAAIAWQEBA5AGAIwLAABGAAAACwACAAEAV2wLACMAAABXbAMAJgAAAAAACwApAAAAAAAC
ATEAAQAAAEYAAAAAAAAA1jwY4BPT9k+6QJpbQbse0AcAwtGvvOmDlUG+Ex8QSRyeZQAAAAAq5gAA
wtGvvOmDlUG+Ex8QSRyeZQAAAAD16AAAA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CARQ0AQAAABAAAABUlKHAKX8QG6WHCAArKiUXAgH7DwEAAACBAAAAAAAAADihuxAF
5RAaobsIACsqVsIAAEVNU01EQi5ETEwAAAAAAAAAABtV+iCqZhHNm8gAqgAvxFoMAAAAQlJJQ0tU
T1AAL289SEVVRVIvb3U9Rmlyc3QgQWRtaW5pc3RyYXRpdmUgR3JvdXAvY249UmVjaXBpZW50cy9j
bj10aW0AAAAAAgH6DwEAAAAQAAAA1jwY4BPT9k+6QJpbQbse0BQAS2YEAIIWBQAGAB4ARGYBAAAA
CQAAAEJSSUNLVE9QAAAAAAIBfwABAAAAPQAAADxDMkQxQUZCQ0U5ODM5NTQxQkUxMzFGMTA0OTFD
OUU2NTM0MDBAYnJpY2t0b3AudGltaGV1ZXIuY29tPgAAAAADAAYQKZ7jxAMABxAdAgAAAwAQEAAA
AAADABEQAAAAAB4ACBABAAAAZQAAAElXQU5UVE9FTkFCTEVNWVNJVEVGT1JCRVRURVJJTkRFWElO
R1RIUk9VR0hTRUFSQ0hFTkdJTkVTLEVUQ1dIQVRJV0FOVElTU09NRVRISU5HTElLRTpIVFRQOi8v
TVlTSVRFQ08AAAAAk60=

------=_NextPart_000_0010_01C1F5E7.C626DA10--

Reply to this message...
 
    
Mark Bruce
This link provide what you want.
http://www.devx.com/premier/mgznarch/vbpj/2002/02feb02/qa0202/qa0202-1.asp

--- Tim Heuer <Click here to reveal e-mail address> wrote:
[Original message clipped]

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

Reply to this message...
 
    
Tim Heuer
Okay, a twist on this idea...

What if the content (thus the RewritePath URL) is a classic ASP
page...currently the machine.config denies the serving up of .asp files
under the ASP.NET worker process. My app is a classic ASP app and I
want to use this mechanism to serve up content but am trying to avoid
using a response.redirect instead of a context.RewritePath...

I have not found a solution yet and have tried modifying machine.config
to have .asp handled by a different factory (didn't work because of the
page logic and use of VBScript). I tried Server.Transfer and that
(oddly enough) did not work for me either.

Any ideas?

Thanks in advance,

Tim

-----Original Message-----
From: Mark Bruce [mailto:Click here to reveal e-mail address]=20
Sent: Tuesday, May 07, 2002 9:49 PM
To: aspnghttphandlers
Subject: [aspnghttphandlers] Re: How to...

This link provide what you want.
http://www.devx.com/premier/mgznarch/vbpj/2002/02feb02/qa0202/qa0202-1.a
sp

--- Tim Heuer <Click here to reveal e-mail address> wrote:
[Original message clipped]

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

| [aspnghttphandlers] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspnghttphandlers.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Mark Bruce
Your orignal requirement was:

[Original message clipped]

But, due to the change in scope of your problem, now requiring cross process/platform execution
paths, my next recomendation would be to write yourself an ISAPI dll and handle it that way.

Other wise, keep it simple and use redirects.

HTH,
MArk

--- Tim Heuer <Click here to reveal e-mail address> wrote:
[Original message clipped]

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

Reply to this message...
 
    
Paul D. Murphy
I've seen a control -- sorry, don't remember where -- that would suck an
html page from another website and display the contents. If there is
some logical structure that you can use to map the Uri path to the
classic asp page a control like this would work.

Simply generate the appropriate Uri in your Http module and then assign
that value to the control in the aspx page that handles the loading and
display. Turn on output caching and you should be good to go.

Paul

-----Original Message-----
From: Mark Bruce [mailto:Click here to reveal e-mail address]=20
Sent: Thursday, May 09, 2002 12:46 PM
To: aspnghttphandlers
Subject: [aspnghttphandlers] Re: How to...

Your orignal requirement was:

[Original message clipped]

But, due to the change in scope of your problem, now requiring cross
process/platform execution
paths, my next recomendation would be to write yourself an ISAPI dll and
handle it that way.

Other wise, keep it simple and use redirects.

HTH,
MArk

--- Tim Heuer <Click here to reveal e-mail address> wrote:
[Original message clipped]


> > want to limit it to whenever someone requests the "/press/"
content...
> > (2) In my handler I can't figure out how to execute that logic... I

[Original message clipped]


[Original message clipped]

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

| [aspnghttphandlers] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspnghttphandlers.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com