Parameter Not Passing in Live View

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

  1. #1

    Default Parameter Not Passing in Live View

    :confused;

    I have a simple dataset in ASP.NET VB with a parameter that calls records via
    a parameter named frmName. I have it set to select records from the WholeNameA
    field. I have my results set up as a table with a repeater. When I attempt to
    preview results via the Live Data function, however, no results are returned.
    It seems as if the parameter does not pass to the query.

    I have attached the code.

    This seems as if it should not be difficult to fix but I'm out of ideas.

    Help!!!

    Steve

    <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
    <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
    Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,cultu
    re=neutral" %>
    <MM:DataSet
    id="dsPersonnel"
    runat="Server"
    IsStoredProcedure="false"
    ConnectionString='<%#
    System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_UWS
    Central") %>'
    DatabaseType='<%#
    System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETY
    PE_UWSCentral") %>'
    CommandText='<%# "SELECT PersonnelID, PhotoID, WholeNameA, DispPTelephone,
    Email FROM dbo.vw_EmployeeAlpha WHERE WholeNameA LIKE @WholeNameA ORDER BY
    WholeNameA ASC" %>'
    Debug="true"
    ><Parameters>
    <Parameter Name="@WholeNameA" Value='<%# "%" +
    (IIf((Request.QueryString("frmName") <> Nothing),
    Request.QueryString("frmName"), "")) + "%" %>' Type="NChar"
    /></Parameters></MM:DataSet>
    <MM:PageBind runat="server" PostBackBind="true" />
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    <body>
    <ASP:Repeater runat="server" DataSource='<%# dsPersonnel.DefaultView %>'>
    <ItemTemplate>
    <table width="610" border="2" cellspacing="2">
    <tr>
    <td><%# dsPersonnel.FieldValue("PhotoID", Container) %></td>
    </tr>
    <tr>
    <td><%# dsPersonnel.FieldValue("WholeNameA", Container) %></td>
    </tr>
    <tr>
    <td><%# dsPersonnel.FieldValue("DispPTelephone", Container) %></td>
    </tr>
    <tr>
    <td><%# dsPersonnel.FieldValue("Email", Container) %></td>
    </tr>
    </table>
    </ItemTemplate>
    </ASP:Repeater>
    </body>
    </html>

    sbrenier Guest

  2. Similar Questions and Discussions

    1. live data view
      Does anyone know if Contribute 3 has a "live data" view like Dreamweaver? I would like for a non-technical, content owner to be able to pull up a...
    2. Passing a parameter in SWF
      In the sample application that comes with flash mx, when I click on the simpleconnect and look at parameters it has an Application Directory and if...
    3. Passing in a parameter
      Hello All, I've declared my usercontrol in the normal way (page directive) and to load it I'm doing: <webapp:menu runat="server" />. However, is...
    4. parameter passing from asp to php
      Hi all, I've got a script using com objects that will work in asp but not work with php. The asp script creates an object that does something...
    5. parameter passing from osql
      Hi, I want to write a batch file which essentially calls the osql utility (osql -i xxx.sql....) to run a SQL script. How the script can be written...
  3. #2

    Default Re: Parameter Not Passing in Live View

    Check that the URL string coming into this page has a ?frmName=somevalue
    attached to the end of it.

    --
    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]

    "sbrenier" <webforumsuser@macromedia.com> wrote in message
    news:d3oh90$81p$1@forums.macromedia.com...
    > :confused;
    >
    > I have a simple dataset in ASP.NET VB with a parameter that calls records
    via
    > a parameter named frmName. I have it set to select records from the
    WholeNameA
    > field. I have my results set up as a table with a repeater. When I
    attempt to
    > preview results via the Live Data function, however, no results are
    returned.
    > It seems as if the parameter does not pass to the query.
    >
    > I have attached the code.
    >
    > This seems as if it should not be difficult to fix but I'm out of ideas.
    >
    > Help!!!
    >
    > Steve
    >
    > <%@ Page Language="VB" ContentType="text/html"
    ResponseEncoding="iso-8859-1" %>
    > <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls"
    >
    Assembly="DreamweaverCtrls,version=1.0.0.0,publicK eyToken=836f606ede05d46a,c
    ultu
    > re=neutral" %>
    > <MM:DataSet
    > id="dsPersonnel"
    > runat="Server"
    > IsStoredProcedure="false"
    > ConnectionString='<%#
    >
    System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING
    _UWS
    > Central") %>'
    > DatabaseType='<%#
    >
    System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABA
    SETY
    > PE_UWSCentral") %>'
    > CommandText='<%# "SELECT PersonnelID, PhotoID, WholeNameA,
    DispPTelephone,
    > Email FROM dbo.vw_EmployeeAlpha WHERE WholeNameA LIKE @WholeNameA ORDER
    BY
    > WholeNameA ASC" %>'
    > Debug="true"
    > ><Parameters>
    > <Parameter Name="@WholeNameA" Value='<%# "%" +
    > (IIf((Request.QueryString("frmName") <> Nothing),
    > Request.QueryString("frmName"), "")) + "%" %>' Type="NChar"
    > /></Parameters></MM:DataSet>
    > <MM:PageBind runat="server" PostBackBind="true" />
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    > "http://www.w3.org/TR/html4/loose.dtd">
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    > <title>Untitled Document</title>
    > </head>
    > <body>
    > <ASP:Repeater runat="server" DataSource='<%# dsPersonnel.DefaultView %>'>
    > <ItemTemplate>
    > <table width="610" border="2" cellspacing="2">
    > <tr>
    > <td><%# dsPersonnel.FieldValue("PhotoID", Container) %></td>
    > </tr>
    > <tr>
    > <td><%# dsPersonnel.FieldValue("WholeNameA", Container) %></td>
    > </tr>
    > <tr>
    > <td><%# dsPersonnel.FieldValue("DispPTelephone", Container)
    %></td>
    > </tr>
    > <tr>
    > <td><%# dsPersonnel.FieldValue("Email", Container) %></td>
    > </tr>
    > </table>
    > </ItemTemplate>
    > </ASP:Repeater>
    > </body>
    > </html>
    >

    Paul Whitham TMM 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