473,503 Members | 4,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web handler or something like that

I have some problem. My old site had thousand pages which looks like
“info_[subj].asp” and I did modification and now all content in database and
I can show it like this
“info_page.aspx?search=[subj]”
It means now I have only one page which show text of all those page from
database where key param is [subj], but before it was part of page name.

For example,
Before
http://somesite.com/info_contacr_us.asp
Now
http://somesite.com/info_page.aspx?search=contact_us

And I have question here. How I can support old links if I don’t have those
files any more? It means some customer open old link and will be redirected
to new page.

As I know asp.net have some web handler type (Handler.ashx) and it looks
close to what I need, but I can’t found information how to use those files.
Apr 25 '07 #1
5 1399
Look up "Urlrewriting.net"
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"SushiSean" wrote:
I have some problem. My old site had thousand pages which looks like
“info_[subj].asp” and I did modification and now all content in database and
I can show it like this
“info_page.aspx?search=[subj]”
It means now I have only one page which show text of all those page from
database where key param is [subj], but before it was part of page name.

For example,
Before
http://somesite.com/info_contacr_us.asp
Now
http://somesite.com/info_page.aspx?search=contact_us

And I have question here. How I can support old links if I don’t have those
files any more? It means some customer open old link and will be redirected
to new page.

As I know asp.net have some web handler type (Handler.ashx) and it looks
close to what I need, but I can’t found information how to use those files.
Apr 25 '07 #2
With ASP and no >NET installed, it is not easy, as you will have to write an
ISAPI filter, which means coding C++.

If you also have .NET enabled, you can use an HTTP Handler to turn the URL
into the new URL. You can do that for any URL in the site, so it is a way to
move into .NET without moving into .NET.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
"SushiSean" <Su*******@discussions.microsoft.comwrote in message
news:CA**********************************@microsof t.com...
>I have some problem. My old site had thousand pages which looks like
“info_[subj].asp” and I did modification and now all content in database
and
I can show it like this
“info_page.aspx?search=[subj]”
It means now I have only one page which show text of all those page from
database where key param is [subj], but before it was part of page name.

For example,
Before
http://somesite.com/info_contacr_us.asp
Now
http://somesite.com/info_page.aspx?search=contact_us

And I have question here. How I can support old links if I don’t have
those
files any more? It means some customer open old link and will be
redirected
to new page.

As I know asp.net have some web handler type (Handler.ashx) and it looks
close to what I need, but I can’t found information how to use those
files.
Apr 25 '07 #3
give me an example how to make this HTTP Handler work for my problem.
I need some information about this.

"Cowboy (Gregory A. Beamer)" wrote:
With ASP and no >NET installed, it is not easy, as you will have to write an
ISAPI filter, which means coding C++.

If you also have .NET enabled, you can use an HTTP Handler to turn the URL
into the new URL. You can do that for any URL in the site, so it is a way to
move into .NET without moving into .NET.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Apr 25 '07 #4
While not 100% related, there is a good article here:
http://www.ftponline.com/vsm/2002_02...ne/columns/qa/

It talks about hierarchical URLs in ASP.NET, like turning

http://www.mymagazine.com/April/2007/GuestArticle/101

into

http://www.mymagazine.com/Article.as...07&article=101

Great little piece. May not get you 100% of the way, but it is a great
start.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
"SushiSean" <Su*******@discussions.microsoft.comwrote in message
news:6C**********************************@microsof t.com...
give me an example how to make this HTTP Handler work for my problem.
I need some information about this.

"Cowboy (Gregory A. Beamer)" wrote:
>With ASP and no >NET installed, it is not easy, as you will have to write
an
ISAPI filter, which means coding C++.

If you also have .NET enabled, you can use an HTTP Handler to turn the
URL
into the new URL. You can do that for any URL in the site, so it is a way
to
move into .NET without moving into .NET.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Apr 26 '07 #5
I can't open links from mymagazine.com site. I see just page with string for
search.
But nevermind.

So I read a lot about that stuff and now it looks cool but still few qestions.
So now I know
1) how make httpModules
it should be string in web.config
<httpModules>
< add name="HelloWorldModule" type="HelloWorldModule"/>
</httpModules>
And this class HelloWorldModule should by from IHttpModule interface.
It allow get control from all requests to site if singup on event
application.BeginRequest.

2) I know how to make HttpHandler
add to web.config
<httpHandlers>
<add verb="*" path="*.ashx" type="DukeHttpHandler" />
</httpHandlers>

and put this code file to APP_CODE which should be from IHttpHandler
interface. So when somebody ask any *.ashx file this code get event.
=============================================

BUT i don't realize how and for I can use Handler.ashx which studio
create by default. It have class from IHttpHandler interface but this class
don't
get event when I load some *.ashx file and I CAN'T map it to web.config
because this file not in APP_CODE folder.
So question is how I can use this file at all?

Apr 27 '07 #6

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

Similar topics

2
1970
by: Adi | last post by:
Okay, this issue has been annoying me for a little while now. I need it to work on Mozilla 1.6 & IE 6 This is what I would like to be able to do: var row = document.createElement("TR"); var...
4
6096
by: Bart van Deenen | last post by:
Hi all I have a script where I dynamically create multiple inputs and selects from a script. The inputs and selects must have an associated onchange handler. I have the script working fine on...
13
6572
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
3
15943
by: deko | last post by:
I have a logging routine that's supposed to silently log errors caught by error handler code on certain functions. The problem is sometimes stuff happens and the error handler can get caught in a...
7
2751
by: mortb | last post by:
I have written a custom http handler and added it to the web.config file <httpHandlers> <add verb="GET" path="ITImageService.axd" type="ITImageService.ITImageGetter,ITImageService" />...
14
1281
by: John Zullo | last post by:
When I look at the HTTPContext.Current at a breakpoint in a Business Object instanntiated by a Page class, the Handler is set to nothing. It only has a value from within the page class itself. I...
15
26486
by: Amit D.Shinde | last post by:
I am adding a new picturebox control at runtime on the form How can i create click event handler for this control Amit Shinde
10
12509
by: Franky | last post by:
How Remove All Handler on a event? Like remove all handler on the myButton.Click. Thanks ______________________________ Franky FrankyPDA_NOSPAM_@hotmail.com
6
8754
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
2
3899
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
0
7188
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
7063
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
7313
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...
1
6970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7441
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...
1
4987
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...
0
4663
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...
0
3156
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
366
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.