How to customize content depending on URL?

This is a discussion on "How to customize content depending on URL?" within the Classic ASP section. This forum, and the thread "How to customize content depending on URL? are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 11th, 2006, 14:45
New Member
Join Date: Oct 2006
Location: Shanghai
Age: 33
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
How to customize content depending on URL?

Does anyone know how to change some content on a template file depending on the current page being viewed, for example, how can you display flash1 on /example1.asp and flash2 on all other pages? (the flash is embedded on the template)

I tried one way:
Dim thisImagePath
If InStr(PageUrl,"/example1/") = 0 Then
thisImagePath = "/flash2" & PagePath
Else
thisImagePath = ".flash1" & PagePath

then in the flash src i put <% thisImagePath %>

But it didn't work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 13th, 2006, 04:50
New Member
Join Date: Oct 2006
Location: Shanghai
Age: 33
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to customize content depending on URL?

Don't worry I found a solution ; )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
customize content, template

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Let a user customize my layout.. jahphill Web Page Design 1 Jun 6th, 2008 07:40
[CSS] Customize your form with CSS karinne Starting Out 5 Nov 8th, 2007 16:57
Try my new JavaScript: Customize Dropdown Menu temp JavaScript Forum 1 Aug 8th, 2007 11:47
Resizing a div depending on another div size AdRock Web Page Design 2 Sep 3rd, 2006 14:26


All times are GMT. The time now is 14:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42