Dynamic Page Creation

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Dynamic Page Creation

    I would like to be able to create pages dynamicly. The page name would
    dynamicly appear in the menu with a link to the page. All pages would work off
    the same template.

    Is there a tutorial about this anywhere?

    --------------------------------------------
    ASP, MS Access, DW MX 2004
    --------------------------------------------

    thank





    The Wackonerd Guest

  2. Similar Questions and Discussions

    1. dynamic xml creation
      How can I make XML dynamically inside tha Flash using AS? Basicly i need to make structure like these one: <root> <item></item> ......
    2. dynamic tag creation
      Looking for a way to dynamically evaluate a tag from a string. eg: <cfset tmp = '<cfset myRslt = "Hello">'> <cfoutput> #tmp# </cfoutput> ...
    3. Dynamic content creation
      I'm rather a newbie to flex, at the stage of considering it it is worth my time to get to know to it (or maybe laszlo...). I have this question:...
    4. Dynamic columns creation
      Hi. I have a stored procedure that among other things returns a column with values that will be used to compose a temporary table. The number of...
    5. dynamic object creation
      If I have something like this: s="Array" How whould I get something like this: aObject=s.new In "plain" english I am asking if I have a...
  3. #2

    Default Re: Dynamic Page Creation

    There are a few ways to accomplish this, but you will need to use the
    FileSystemObject to either write the lines of code and then save the file
    using the CreateTextFile method or you can copy a file and rename it.

    For help working with the FileSystemObject, here's a good tutorial:
    [url]http://www.aspfaq.com/show.asp?id=2039[/url]

    HTH,
    bT

    "The Wackonerd" <webforumsuser@macromedia.com> wrote in message
    news:d2ihvd$3ok$1@forums.macromedia.com...
    >I would like to be able to create pages dynamicly. The page name would
    > dynamicly appear in the menu with a link to the page. All pages would work
    > off
    > the same template.
    >
    > Is there a tutorial about this anywhere?
    >
    > --------------------------------------------
    > ASP, MS Access, DW MX 2004
    > --------------------------------------------
    >
    > thank
    >
    >
    >
    >
    >

    Brandon Taylor Guest

  4. #3

    Default Re: Dynamic Page Creation

    Thanks Brandon but I cant see how this relates to my question and then again I
    might just have missed what this is about so I will re phrase my question

    I want the page to populate from a database table,
    localhost/mysite/page.asp?id25
    I can get it to show the first record but not any of the others

    any ideas?

    The Wackonerd Guest

  5. #4

    Default Re: Dynamic Page Creation

    If you are only getting the first value then your filter is not working
    properly probably because the URL should be passed like this

    localhost/mysite/page.asp?id=25


    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "The Wackonerd" <webforumsuser@macromedia.com> wrote in message
    news:d2q04i$ojs$1@forums.macromedia.com...
    > Thanks Brandon but I cant see how this relates to my question and then
    again I
    > might just have missed what this is about so I will re phrase my question
    >
    > I want the page to populate from a database table,
    > localhost/mysite/page.asp?id25
    > I can get it to show the first record but not any of the others
    >
    > any ideas?
    >

    Paul Whitham TMM Guest

  6. #5

    Default Re: Dynamic Page Creation

    Thanks for that Paul,
    I must have typed out the above link incorrectly
    I am getting localhost/mysite/page.asp?id=25 as the displayed link but it is
    only displaying the first record.

    I think this is part of the problem - MMColParam = "1" when I change the 1 to
    another number (say 3) I get the info fom the record for 3
    So how do I get it to dynamicaly present the correct record set?

    <%
    Dim rs_template__MMColParam
    rs_template__MMColParam = "1"
    If (Request.Form("S_ID") <> "") Then
    rs_template__MMColParam = Request.Form("S_ID")
    End If
    %>


    The Wackonerd Guest

  7. #6

    Default Re: Dynamic Page Creation

    Your problem is immediate in the code you presented. It is looking for a
    passed form value. If you change the line

    rs_template__MMColParam = Request.Form("S_ID")

    to
    rs_template__MMColParam = Request.QueryString("ID")

    it should work with the URL string that you have.
    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "The Wackonerd" <webforumsuser@macromedia.com> wrote in message
    news:d2qc9k$8hs$1@forums.macromedia.com...
    > Thanks for that Paul,
    > I must have typed out the above link incorrectly
    > I am getting localhost/mysite/page.asp?id=25 as the displayed link but
    it is
    > only displaying the first record.
    >
    > I think this is part of the problem - MMColParam = "1" when I change the
    1 to
    > another number (say 3) I get the info fom the record for 3
    > So how do I get it to dynamicaly present the correct record set?
    >
    > <%
    > Dim rs_template__MMColParam
    > rs_template__MMColParam = "1"
    > If (Request.Form("S_ID") <> "") Then
    > rs_template__MMColParam = Request.Form("S_ID")
    > End If
    > %>
    >
    >

    Paul Whitham TMM Guest

  8. #7

    Default Re: Dynamic Page Creation

    Thanks Paul
    You where right on the button, thanks
    I did have to also change one other line also as you can see below

    <%
    Dim rs_template__MMColParam
    rs_template__MMColParam = "1"
    If (Request.QueryString("ID") <> "") Then
    rs_template__MMColParam = Request.QueryString("ID")
    End If
    %>

    thanks again

    The Wackonerd Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139