Help creating dynamic page

Author Message
santoshks

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 7/27/2009
  • Status: offline
Help creating dynamic page Monday, July 27, 2009 4:09 AM (permalink)
0
Hi I am facing some problem and it goes like this.

I have some hyperlink in my page which display same kind of page.

For example, let us say I have a links as below

apple
banana
carrot

Now when we click, let us say new page is opened with following text

Apple is fruit (For link apple)
Banana is fruit (For link banana)
Carrot is fruit (For link carrot)

Now here we can see that all page has same information except the link text(apple, banana and carrot). So what I assume is we just can create single page (instead creating three page) which then can be dynamically modified and send to the client, depending upon the link text.

I hope I explained the problem clearly. Now I just wnat to know how can we achive this kind of solution.

So can any one help how to figure out this problem using vbscript. I shall be highly grateful.

Thanks in advance.

Santosh

 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    RE: Help creating dynamic page Monday, July 27, 2009 5:56 AM (permalink)
    0
    Well your problem is clearly that Carrots are not fruit.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      santoshks

      • Total Posts : 2
      • Scores: 0
      • Reward points : 0
      • Joined: 7/27/2009
      • Status: offline
      RE: Help creating dynamic page Monday, July 27, 2009 8:36 AM (permalink)
      0
      It doesn't matter whether carrot is fruit or vegetable, I just wanted to give some example.
      It is very rude to give irrelevant answers to the genuine problem.
      It makes people feel bad and thus stops visiting your site.
      For your kind information I solved that problem using JavaScript.

      Again for you kind information you are an Administrator for this site, no body expect black humor, at least from an Administrator.

      Thanks again,

      Bye



       
      #3
        ebgreen

        • Total Posts : 8227
        • Scores: 98
        • Reward points : 0
        • Joined: 7/12/2005
        • Status: offline
        RE: Help creating dynamic page Tuesday, July 28, 2009 1:24 AM (permalink)
        0
        My apologies. I do not do ASP, so I was simply adding some humor while I waited for one of the ASP knowledgeable folks to wander along. Having said that, if your skin is that thin perhaps the internet in general is not the right place to look for answers. This site in particular has one of the most courteous memberships on the internet, but we still occasionally joke around.
        "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
        Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
        http://www.visualbasicscript.com/m_47117/tm.htm
         
        #4
          jsjay9

          • Total Posts : 6
          • Scores: 0
          • Reward points : 0
          • Joined: 9/10/2009
          • Status: offline
          Re: RE: Help creating dynamic page Thursday, September 10, 2009 9:27 AM (permalink)
          0
          When creating the list in the display page (1st), create the link with a variable in the HREF string.

          example: sample.asp

                    <%@LANGUAGE="VBSCRIPT"%>
               <% option explicit %>
               <html>
               <head></head>
               <body>
               <p>
               <ul>My list of edible plants
               <li><a href="/edible_plant_detail.asp?ep=Apple">Apple</a>
               <li><a href="/edible_plant_detail.asp?ep=Banana">Banana</a>
               <li><a href="/edible_plant_detail.asp?ep=Carrot">Carrot</a>
               </ul>
               </p>
               </body>
               </html> 
               


          and the recieving page: edible_plant_detail.asp
                    <%@LANGUAGE="VBSCRIPT"%>
               <% option explicit %>
               <%
               '-- assign the variable from the variable passed through the url --'
               Dim edible_plant_in_question
               
               '-- use what was selected; if no selection was made, then display "Nothing" --'
               if request.querystring("ep") <> "" then
               edible_plant_in_question = request.querystring("ep")
               else
               edible_plant_in_question = "Nothing"
               end if
               
               %>
               <html>
               <head></head>
               <body>
               <p>
               <%=edible_plant_in_question%> was selected as the edible plant.
               </p>
               </body>
               </html>
               

           
          #5

            Online Bookmarks Sharing: Share/Bookmark

            Jump to:

            Current active users

            There are 0 members and 1 guests.

            Icon Legend and Permission

            • New Messages
            • No New Messages
            • Hot Topic w/ New Messages
            • Hot Topic w/o New Messages
            • Locked w/ New Messages
            • Locked w/o New Messages
            • Read Message
            • Post New Thread
            • Reply to message
            • Post New Poll
            • Submit Vote
            • Post reward post
            • Delete my own posts
            • Delete my own threads
            • Rate post

            2000-2012 ASPPlayground.NET Forum Version 3.9