473,657 Members | 2,627 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.as px?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 1409
Look up "Urlrewriting.n et"
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.as px?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*******@disc ussions.microso ft.comwrote in message
news:CA******** *************** ***********@mic rosoft.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.as px?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*******@disc ussions.microso ft.comwrote in message
news:6C******** *************** ***********@mic rosoft.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="HelloWorl dModule" type="HelloWorl dModule"/>
</httpModules>
And this class HelloWorldModul e should by from IHttpModule interface.
It allow get control from all requests to site if singup on event
application.Beg inRequest.

2) I know how to make HttpHandler
add to web.config
<httpHandlers >
<add verb="*" path="*.ashx" type="DukeHttpH andler" />
</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
1984
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 tdImage = document.createElement("TD"); var img = document.createElement("IMG"); img.src = "results.gif"; var theA = document.createElement("A");
4
6115
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 Firefox, Safari and Konqueror, but the onchange event just doesn't fire on IE6. Firefox's javascript console shows no errors, and the IE script debugger shows nothing. onchange is not triggered.
13
6593
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
15954
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 loop. Is there some way to send a break from VBA code to break out of the loop? Here's what the error handler code looks like: Private Function MyFunction On Error GoTo HandleErr
7
2758
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" /> </httpHandlers> The code for the handler looks like: public bool IsReusable { get { return true; } }
14
1300
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 was hoping to get a reference to the page object via CType(httpcontext.current.handler,page) Anything special I need to do to be able to access this? TIA, John Zullo
15
26503
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
12550
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
8764
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 launches. I've wired up my event handler to each Menu item and toolbar button. (I use the same Event handler and I use the Tag property which is different for every Menu Item and Toolbar buton to determine which menu or button is being clicked and to...
2
3910
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 well, so at times it is tempting just to port parts of it over mostly as-is. In fact, one MSDN article I read suggested using straight HTML wherever possible to make the app more efficient and less resource demanding. On one page there are 2...
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7324
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
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 we have to send another system
2
1611
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.