Solved

Break down the URL from request.ServerVariables("URL")

Posted on 2013-02-06
3
442 Views
Last Modified: 2013-02-06
Hello All;
As the title suggest, I need to break down the URL.

Lets say this is the URL

domain.com/something/else/50/page.asp

Now, I need to break down the URL, and get the /50/ from the string.
Any idea's on this one?

Thanks All
Carrzkiss
0
Comment
Question by:Wayne Barron
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 38862795
<%
page = Request.ServerVariables("url")
arrPage=split(page,"/")
response.write arrPage(0)&"<br>"
response.write arrPage(1)&"<br>"
response.write arrPage(2)&"<br>"
response.write arrPage(3)&"<br>"
response.write arrPage(4)&"<br>"

%>
0
 
LVL 31

Author Comment

by:Wayne Barron
ID: 38862833
Thanks Padas.
It was weird, I had it set for the (3) and it picked up on the first one, so I had to set it for (5) in order to grab the number.

However, it works like a charm.
And I see that I am not the only one that is up late tonight..

have a good one Padas.
Carrzkiss
0
 
LVL 31

Author Closing Comment

by:Wayne Barron
ID: 38862835
As always, great work, from a great coder and person.
Take care Padas.

Carrzkiss
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question