Dynamic List Problem

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

  1. #1

    Default Dynamic List Problem

    Hi all,

    could someone please help me with a problem I've been trying to resolve for
    the last 4 hours?

    Basically, I have an ASP page, which inserts a record into a DB using a form.
    Within the form I have a list/menu. When the values for the menu are entered in
    manually the page works fine. However I have a problem when I setup the menu
    dynamically using values from a recordset of a database. I save the page and
    test it and it works. However, when I upload the page to my web/application
    server and run it using my IE browser it says the page cannot be read.

    Any help would be much appreciated.

    Thanks,
    Sarb.

    singh83 Guest

  2. Similar Questions and Discussions

    1. dynamic list box help
      Hi I have created a dynamic list box which has 5 items in there. when i click on an item on the list i want it to go to another page where it...
    2. Dynamic text - html list problem
      Has anyone encountered this problem before?I get a problem when I link a dynamic text field to an external text file which has an html bulleted list...
    3. Dynamic list box
      I have a form which collects a users contact details and adds them to a database (Access) table called 'Users' using ASP, on that form there is a...
    4. Dynamic ASP Drop Down List
      Hi, I have created a drop down list which is linked to a dataset. Can anyone tell me how I can display 'Please Select' at the top of the drop down...
    5. Dynamic List Question
      I have a dynamic list that users can select multiple choices and I want on the edit page to have all those choices pre-selected. The values are...
  3. #2

    Default Re: Dynamic List Problem

    How are you setting up the page? Do you have a recordset to get the values
    that will go in the list/menu and are you using that with the dynamic
    list/menu component?

    Can you post your code?


    --
    Nancy Gill
    Team Macromedia Volunteer for Dreamweaver MX/UltraDev
    [url]http://www.macromedia.com/go/team/[/url]
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

    "singh83" <webforumsuser@macromedia.com> wrote in message
    news:d1qhl0$cv1$1@forums.macromedia.com...
    > Hi all,
    >
    > could someone please help me with a problem I've been trying to resolve
    for
    > the last 4 hours?
    >
    > Basically, I have an ASP page, which inserts a record into a DB using a
    form.
    > Within the form I have a list/menu. When the values for the menu are
    entered in
    > manually the page works fine. However I have a problem when I setup the
    menu
    > dynamically using values from a recordset of a database. I save the page
    and
    > test it and it works. However, when I upload the page to my
    web/application
    > server and run it using my IE browser it says the page cannot be read.
    >
    > Any help would be much appreciated.
    >
    > Thanks,
    > Sarb.
    >

    Nancy Gill Guest

  4. #3

    Default Re: Dynamic List Problem

    Hi,
    the page is mostly setup using dreamweaver's tools, which creates asp and SQL
    automatically. Yes, I have created a recordeset containg the data and this is
    used with the dynamic list/menu component. When I test the page by pressing F12
    (a temp file is created and my testing server is the web server I publish my
    files to on the Internet) the list generates perfectly and it works. However,
    when I transfer the files directly to my web/application server and try to test
    it online it just says Page Cannot Be Displayed.

    Here is the code:

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!--#include file="Connections/RemoteBugDBConn.asp" -->
    <!--#include file="Connections/RemoteBugDBConn.asp" -->
    <%
    Dim UsersEmails
    Dim UsersEmails_numRows

    Set UsersEmails = Server.CreateObject("ADODB.Recordset")
    UsersEmails.ActiveConnection = MM_RemoteBugDBConn_STRING
    UsersEmails.Source = "SELECT * FROM [Bug Tracking User]"
    UsersEmails.CursorType = 0
    UsersEmails.CursorLocation = 2
    UsersEmails.LockType = 1
    UsersEmails.Open()

    UsersEmails_numRows = 0
    %>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <form name="form1" method="post" action="">
    <table width="800" border="1" align="center" cellpadding="0" cellspacing="0"
    bordercolor="#FFFFFF">
    <!--DWLayoutTable-->
    <tr>
    <td height="36" valign="top" bordercolor="#000000"><img src="logo.JPG"
    width="276" height="32"></td>
    </tr>
    <tr bordercolor="#FFFFFF">
    <td height="24" valign="top" bordercolor="#000000"
    bgcolor="#F2F2F2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    rsion=6,0,29,0" width="800" height="24">
    <param name="movie" value="Navigation%20Bar_Navigation%20Bar.swf">
    <param name="quality" value="high">
    <param name="LOOP" value="false">
    <embed src="Navigation%20Bar_Navigation%20Bar.swf" width="800"
    height="24" loop="false" quality="high"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"></embed>
    </object></td>
    </tr>
    <tr>
    <td height="399" valign="top" bordercolor="#000000"
    bgcolor="#FFFFFF"><table width="799" border="0">
    <tr>
    <td height="102" bordercolor="#FFFFFF"><table width="792" border="0">
    <tr>
    <td><p>&nbsp;</p>
    <p>&nbsp;</p></td>
    </tr>
    </table>
    <table width="791" border="0">
    <tr bordercolor="#FFFFFF">
    <td width="205" height="26"> <div align="center"><font
    face="Arial, Helvetica, sans-serif">Bug Title</font></div></td>
    <td width="576"><input name="title" type="text" id="title"
    size="80" maxlength="300"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td height="33" bordercolor="#FFFFFF"><table width="792" border="0">
    <tr>
    <td><table width="389" border="0">
    <tr>
    <td width="202"><div align="center"><font face="Arial,
    Helvetica, sans-serif"> Application</font></div></td>
    <td width="177"><select name="product" id="product">
    <option>SELECT
    <option>EAI
    <option>Financial Analyser
    <option>Heat
    <option>iProcurement
    <option>Maximo
    <option>O.Account
    <option>O.Cash
    <option>Oracle
    <option>P3ec
    <option>SIT

    </select></td>
    </tr>
    </table></td>
    <td><table width="390" border="0">
    <tr>
    <td width="210"><div align="center"><font face="Arial,
    Helvetica, sans-serif">Operating System</font></div></td>
    <td width="170"><select name="operSys" id="operSys">
    <option>SELECT
    <option>Linux
    <option>Windows 2000
    <option>Windows XP Home
    <option>Windows XP Pro

    </select></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td bordercolor="#FFFFFF"><table width="792" border="0">
    <tr>
    <td><table width="390" border="0">
    <tr>
    <td width="203"><div align="center"><font face="Arial,
    Helvetica, sans-serif">Workstream</font></div></td>
    <td width="177"><select name="workstream" id="workstream">
    <option>SELECT
    <option>Asset Mgt
    <option>BWP
    <option>Cutover
    <option>Finance &amp; Period End
    <option>LCMG
    <option>People Mgt
    <option>Programme Mgt
    <option>Project Control
    <option>Support
    <option>Time Booking
    <option>Training

    </select></td>
    </tr>
    </table></td>
    <td><table width="392" border="0">
    <tr>
    <td width="212"><div align="center"><font face="Arial,
    Helvetica, sans-serif">Severity</font></div></td>
    <td width="170"><select name="severity" id="severity">
    <option>SELECT
    <option>1
    <option>2
    <option>3
    <option>4
    <option>5
    </select></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td bordercolor="#FFFFFF"><table width="792" border="0">
    <tr>
    <td><table width="389" border="0">
    <tr>
    <td width="203"><div align="center"><font face="Arial,
    Helvetica, sans-serif">Reporter</font></div></td>
    <td width="176"><select name="reporter" id="reporter">
    <option value="">SELECT</option>
    <%
    While (NOT UsersEmails.EOF)
    %>
    <option value="<%=(UsersEmails.Fields.Item("Email
    Address").Value)%>"><%=(UsersEmails.Fields.Item("E mail
    Address").Value)%></option>
    <%
    UsersEmails.MoveNext()
    Wend
    If (UsersEmails.CursorType > 0) Then
    UsersEmails.MoveFirst
    Else
    UsersEmails.Requery
    End If
    %>
    </select></td>
    </tr>
    </table></td>
    <td><table width="390" border="0">
    <tr>
    <td width="213"><div align="center"><font face="Arial,
    Helvetica, sans-serif">Assign
    Bug to:</font></div></td>
    <td width="167"><select name="assign" id="assign">
    <option value="">SELECT</option>
    <%
    While (NOT UsersEmails.EOF)
    %>
    <option value="<%=(UsersEmails.Fields.Item("Email
    Address").Value)%>"><%=(UsersEmails.Fields.Item("E mail
    Address").Value)%></option>
    <%
    UsersEmails.MoveNext()
    Wend
    If (UsersEmails.CursorType > 0) Then
    UsersEmails.MoveFirst
    Else
    UsersEmails.Requery
    End If
    %>
    </select></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td bordercolor="#FFFFFF"><table width="793" border="0">
    <tr>
    <td><table width="390" border="0">
    <tr>
    <td width="203"><div align="center"><font face="Arial,
    Helvetica, sans-serif">Cc
    Bug to:</font></div></td>
    <td width="177"><select name="cc" id="cc">
    <option value="">SELECT</option>
    <%
    While (NOT UsersEmails.EOF)
    %>
    <option value="<%=(UsersEmails.Fields.Item("Email
    Address").Value)%>"><%=(UsersEmails.Fields.Item("E mail
    Address").Value)%></option>
    <%
    UsersEmails.MoveNext()
    Wend
    If (UsersEmails.CursorType > 0) Then
    UsersEmails.MoveFirst
    Else
    UsersEmails.Requery
    End If
    %>
    </select></td>
    </tr>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td bordercolor="#FFFFFF"><table width="793" border="0">
    <tr>
    <td width="207" height="184" valign="top"><font face="Arial,
    Helvetica, sans-serif">Description
    of Bug</font></td>
    <td width="576"><textarea name="textarea" cols="70"
    rows="10"></textarea></td>
    </tr>
    <tr>
    <td height="48" colspan="2" valign="top"><div align="center">
    <p>
    <input type="submit" name="Submit2" value="Submit">
    <input name="Reset" type="reset" id="Reset" value="Reset">
    <select name="select">
    </select>
    </p>
    </div></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td height="67" valign="top" bordercolor="#000000" bgcolor="#F2F2F2"><div
    align="center">
    <p><font face="Arial, Helvetica, sans-serif"><strong>QUICK
    SEARCH</strong></font></p>
    <p><font face="Arial, Helvetica, sans-serif"><strong>Enter Bug ID:
    <input type="text" name="textfield">
    <input type="submit" name="Submit" value="Submit">
    </strong></font></p>
    </div>
    </td>
    </tr>
    </table>
    </form>
    <p>&nbsp;</p>
    </body>
    </html>
    <%
    UsersEmails.Close()
    Set UsersEmails = Nothing
    %>
    <%
    UsersEmails.Close()
    Set UsersEmails = Nothing
    %>


    Many Thanks,

    Sarb.

    singh83 Guest

  5. #4

    Default Re: Dynamic List Problem

    do you have "Show descriptive error" option unchecked in IE? if not, do
    it to get a more meaningfull error message

    singh83 wrote:
    > Hi,
    > the page is mostly setup using dreamweaver's tools, which creates asp and SQL
    > automatically. Yes, I have created a recordeset containg the data and this is
    > used with the dynamic list/menu component. When I test the page by pressing F12
    > (a temp file is created and my testing server is the web server I publish my
    > files to on the Internet) the list generates perfectly and it works. However,
    > when I transfer the files directly to my web/application server and try to test
    > it online it just says Page Cannot Be Displayed.
    >
    > Here is the code:
    >
    > <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    > <!--#include file="Connections/RemoteBugDBConn.asp" -->
    > <!--#include file="Connections/RemoteBugDBConn.asp" -->
    > <%
    > Dim UsersEmails
    > Dim UsersEmails_numRows
    >
    > Set UsersEmails = Server.CreateObject("ADODB.Recordset")
    > UsersEmails.ActiveConnection = MM_RemoteBugDBConn_STRING
    > UsersEmails.Source = "SELECT * FROM [Bug Tracking User]"
    > UsersEmails.CursorType = 0
    > UsersEmails.CursorLocation = 2
    > UsersEmails.LockType = 1
    > UsersEmails.Open()
    >
    > UsersEmails_numRows = 0
    > %>
    > <html>
    > <head>
    > <title>Untitled Document</title>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    > </head>
    >
    > <body>
    > <form name="form1" method="post" action="">
    > <table width="800" border="1" align="center" cellpadding="0" cellspacing="0"
    > bordercolor="#FFFFFF">
    > <!--DWLayoutTable-->
    > <tr>
    > <td height="36" valign="top" bordercolor="#000000"><img src="logo.JPG"
    > width="276" height="32"></td>
    > </tr>
    > <tr bordercolor="#FFFFFF">
    > <td height="24" valign="top" bordercolor="#000000"
    > bgcolor="#F2F2F2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=6,0,29,0" width="800" height="24">
    > <param name="movie" value="Navigation%20Bar_Navigation%20Bar.swf">
    > <param name="quality" value="high">
    > <param name="LOOP" value="false">
    > <embed src="Navigation%20Bar_Navigation%20Bar.swf" width="800"
    > height="24" loop="false" quality="high"
    > pluginspage="http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash"></embed>
    > </object></td>
    > </tr>
    > <tr>
    > <td height="399" valign="top" bordercolor="#000000"
    > bgcolor="#FFFFFF"><table width="799" border="0">
    > <tr>
    > <td height="102" bordercolor="#FFFFFF"><table width="792" border="0">
    > <tr>
    > <td><p>&nbsp;</p>
    > <p>&nbsp;</p></td>
    > </tr>
    > </table>
    > <table width="791" border="0">
    > <tr bordercolor="#FFFFFF">
    > <td width="205" height="26"> <div align="center"><font
    > face="Arial, Helvetica, sans-serif">Bug Title</font></div></td>
    > <td width="576"><input name="title" type="text" id="title"
    > size="80" maxlength="300"></td>
    > </tr>
    > </table>
    > </td>
    > </tr>
    > <tr>
    > <td height="33" bordercolor="#FFFFFF"><table width="792" border="0">
    > <tr>
    > <td><table width="389" border="0">
    > <tr>
    > <td width="202"><div align="center"><font face="Arial,
    > Helvetica, sans-serif"> Application</font></div></td>
    > <td width="177"><select name="product" id="product">
    > <option>SELECT
    > <option>EAI
    > <option>Financial Analyser
    > <option>Heat
    > <option>iProcurement
    > <option>Maximo
    > <option>O.Account
    > <option>O.Cash
    > <option>Oracle
    > <option>P3ec
    > <option>SIT
    >
    > </select></td>
    > </tr>
    > </table></td>
    > <td><table width="390" border="0">
    > <tr>
    > <td width="210"><div align="center"><font face="Arial,
    > Helvetica, sans-serif">Operating System</font></div></td>
    > <td width="170"><select name="operSys" id="operSys">
    > <option>SELECT
    > <option>Linux
    > <option>Windows 2000
    > <option>Windows XP Home
    > <option>Windows XP Pro
    >
    > </select></td>
    > </tr>
    > </table></td>
    > </tr>
    > </table></td>
    > </tr>
    > <tr>
    > <td bordercolor="#FFFFFF"><table width="792" border="0">
    > <tr>
    > <td><table width="390" border="0">
    > <tr>
    > <td width="203"><div align="center"><font face="Arial,
    > Helvetica, sans-serif">Workstream</font></div></td>
    > <td width="177"><select name="workstream" id="workstream">
    > <option>SELECT
    > <option>Asset Mgt
    > <option>BWP
    > <option>Cutover
    > <option>Finance &amp; Period End
    > <option>LCMG
    > <option>People Mgt
    > <option>Programme Mgt
    > <option>Project Control
    > <option>Support
    > <option>Time Booking
    > <option>Training
    >
    > </select></td>
    > </tr>
    > </table></td>
    > <td><table width="392" border="0">
    > <tr>
    > <td width="212"><div align="center"><font face="Arial,
    > Helvetica, sans-serif">Severity</font></div></td>
    > <td width="170"><select name="severity" id="severity">
    > <option>SELECT
    > <option>1
    > <option>2
    > <option>3
    > <option>4
    > <option>5
    > </select></td>
    > </tr>
    > </table></td>
    > </tr>
    > </table></td>
    > </tr>
    > <tr>
    > <td bordercolor="#FFFFFF"><table width="792" border="0">
    > <tr>
    > <td><table width="389" border="0">
    > <tr>
    > <td width="203"><div align="center"><font face="Arial,
    > Helvetica, sans-serif">Reporter</font></div></td>
    > <td width="176"><select name="reporter" id="reporter">
    > <option value="">SELECT</option>
    > <%
    > While (NOT UsersEmails.EOF)
    > %>
    > <option value="<%=(UsersEmails.Fields.Item("Email
    > Address").Value)%>"><%=(UsersEmails.Fields.Item("E mail
    > Address").Value)%></option>
    > <%
    > UsersEmails.MoveNext()
    > Wend
    > If (UsersEmails.CursorType > 0) Then
    > UsersEmails.MoveFirst
    > Else
    > UsersEmails.Requery
    > End If
    > %>
    > </select></td>
    > </tr>
    > </table></td>
    > <td><table width="390" border="0">
    > <tr>
    > <td width="213"><div align="center"><font face="Arial,
    > Helvetica, sans-serif">Assign
    > Bug to:</font></div></td>
    > <td width="167"><select name="assign" id="assign">
    > <option value="">SELECT</option>
    > <%
    > While (NOT UsersEmails.EOF)
    > %>
    > <option value="<%=(UsersEmails.Fields.Item("Email
    > Address").Value)%>"><%=(UsersEmails.Fields.Item("E mail
    > Address").Value)%></option>
    > <%
    > UsersEmails.MoveNext()
    > Wend
    > If (UsersEmails.CursorType > 0) Then
    > UsersEmails.MoveFirst
    > Else
    > UsersEmails.Requery
    > End If
    > %>
    > </select></td>
    > </tr>
    > </table></td>
    > </tr>
    > </table></td>
    > </tr>
    > <tr>
    > <td bordercolor="#FFFFFF"><table width="793" border="0">
    > <tr>
    > <td><table width="390" border="0">
    > <tr>
    > <td width="203"><div align="center"><font face="Arial,
    > Helvetica, sans-serif">Cc
    > Bug to:</font></div></td>
    > <td width="177"><select name="cc" id="cc">
    > <option value="">SELECT</option>
    > <%
    > While (NOT UsersEmails.EOF)
    > %>
    > <option value="<%=(UsersEmails.Fields.Item("Email
    > Address").Value)%>"><%=(UsersEmails.Fields.Item("E mail
    > Address").Value)%></option>
    > <%
    > UsersEmails.MoveNext()
    > Wend
    > If (UsersEmails.CursorType > 0) Then
    > UsersEmails.MoveFirst
    > Else
    > UsersEmails.Requery
    > End If
    > %>
    > </select></td>
    > </tr>
    > </table></td>
    > </tr>
    > </table></td>
    > </tr>
    > <tr>
    > <td bordercolor="#FFFFFF"><table width="793" border="0">
    > <tr>
    > <td width="207" height="184" valign="top"><font face="Arial,
    > Helvetica, sans-serif">Description
    > of Bug</font></td>
    > <td width="576"><textarea name="textarea" cols="70"
    > rows="10"></textarea></td>
    > </tr>
    > <tr>
    > <td height="48" colspan="2" valign="top"><div align="center">
    > <p>
    > <input type="submit" name="Submit2" value="Submit">
    > <input name="Reset" type="reset" id="Reset" value="Reset">
    > <select name="select">
    > </select>
    > </p>
    > </div></td>
    > </tr>
    > </table></td>
    > </tr>
    > </table>
    > </td>
    > </tr>
    > <tr>
    > <td height="67" valign="top" bordercolor="#000000" bgcolor="#F2F2F2"><div
    > align="center">
    > <p><font face="Arial, Helvetica, sans-serif"><strong>QUICK
    > SEARCH</strong></font></p>
    > <p><font face="Arial, Helvetica, sans-serif"><strong>Enter Bug ID:
    > <input type="text" name="textfield">
    > <input type="submit" name="Submit" value="Submit">
    > </strong></font></p>
    > </div>
    > </td>
    > </tr>
    > </table>
    > </form>
    > <p>&nbsp;</p>
    > </body>
    > </html>
    > <%
    > UsersEmails.Close()
    > Set UsersEmails = Nothing
    > %>
    > <%
    > UsersEmails.Close()
    > Set UsersEmails = Nothing
    > %>
    >
    >
    > Many Thanks,
    >
    > Sarb.
    >
    Manuel Socarras Guest

  6. #5

    Default Re: Dynamic List Problem

    Hi,
    im not sure if I have "Show descriptive error" option unchecked in IE. Please
    could you tell me how I could check this. However, the exact error message I
    get is:
    HTTP 500 - Internal server error
    Internet Explorer

    You can view this at: [url]http://free.7host06.com/tlbugtracker/createbug.asp[/url]

    Does this help in identifying the problem?

    Thanks,
    Sarb.

    singh83 Guest

  7. #6

    Default Re: Dynamic List Problem

    i'm in a Mac now but i think is in menu:
    Tools > Internet options > Advance tab


    anyway, the error is:

    Microsoft VBScript compilation error '800a0411'

    Name redefined

    /tlbugtracker/Connections/RemoteBugDBConn.asp, line 8

    Dim MM_RemoteBugDBConn_STRING
    ----^

    it could be you have the include directive twice

    singh83 wrote:
    > Hi,
    > im not sure if I have "Show descriptive error" option unchecked in IE. Please
    > could you tell me how I could check this. However, the exact error message I
    > get is:
    > HTTP 500 - Internal server error
    > Internet Explorer
    >
    > You can view this at: [url]http://free.7host06.com/tlbugtracker/createbug.asp[/url]
    >
    > Does this help in identifying the problem?
    >
    > Thanks,
    > Sarb.
    >
    Manuel Socarras Guest

  8. #7

    Default Re: Dynamic List Problem

    thanks! I deleted the duplicate line of code and it now works. Very helpful, thanks!
    singh83 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