ASP.NET: Can a MM:DataSet be "refilled" in a Repeater?

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

  1. #1

    Default ASP.NET: Can a MM:DataSet be "refilled" in a Repeater?

    I'm trying to put a DataGrid inside a Repeater. The idea being that the DataSet
    that the DataGrid is based on will be re-filled each Repeater loop iteration
    with a parameter based on a "FieldValue" from the Repeater's DataSource.

    <MM:DataSet id="SentinelsDataSet" CommandText='<%# "SELECT * FROM Sentinels
    WHERE SiteIDFK = ?" %>' >
    <Parameters>
    <Parameter Name="@SiteIDFK" Value='<%#
    SitesDataSet.FieldValue("SiteIDPK", Container) %>' Type="Integer" />

    <ASP:Repeater runat="server" DataSource='<%# SitesDataSet.DefaultView %>'>
    <ItemTemplate>
    <asp:DataGrid id="SentinelsDataGrid"
    DataSource="<%# SentinelsDataSet.DefaultView %>"

    sparky1962 Guest

  2. Similar Questions and Discussions

    1. Flash Form - <cfformgroup type="repeater"> db loopingissue.
      Here is what I would like to do. Create an accordion view, with each page being populated by a row of data from the database that I'm connected to....
    2. problems with cfformgroup type="repeater" with oracle
      I have code which queries a database table containing skills and I want to output the query results, one record at a time, with a checkbox for each...
    3. vb.net: Problem using "IS" operator with ? parameter in Dataset
      I'm sure someone's come across this, but I couldn't find it searching the boards. I get the error message "Invalid use of Is operator in query...
    4. DataSet Filter "=" not working
      Hello, I am using MX2004 on W2K. I have two pages pulling data from an Access 2000 database. One uses a filter with 'contains' to pull the data...
    5. CFINPUT type="radio" w/ "value" requires "label"
      On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'...
  3. #2

    Default Re: ASP.NET: Can a MM:DataSet be "refilled" in a Repeater?

    I doubt that you can do this the way that you are envisaging. ASP.Net is
    very particular about what controls can go inside others.

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

    "sparky1962" <webforumsuser@macromedia.com> wrote in message
    news:d0njl1$hf8$1@forums.macromedia.com...
    > I'm trying to put a DataGrid inside a Repeater. The idea being that the
    DataSet
    > that the DataGrid is based on will be re-filled each Repeater loop
    iteration
    > with a parameter based on a "FieldValue" from the Repeater's DataSource.
    >
    > <MM:DataSet id="SentinelsDataSet" CommandText='<%# "SELECT * FROM
    Sentinels
    > WHERE SiteIDFK = ?" %>' >
    > <Parameters>
    > <Parameter Name="@SiteIDFK" Value='<%#
    > SitesDataSet.FieldValue("SiteIDPK", Container) %>' Type="Integer" />
    >
    > <ASP:Repeater runat="server" DataSource='<%# SitesDataSet.DefaultView
    %>'>
    > <ItemTemplate>
    > <asp:DataGrid id="SentinelsDataGrid"
    > DataSource="<%# SentinelsDataSet.DefaultView %>"
    >

    Paul Whitham TMM Guest

  4. #3

    Default Re: ASP.NET: Can a MM:DataSet be "refilled" in a Repeater?

    Set the DataGrids DataSource to a function that returns a datareader, you
    can't use MM:DataSet though, its just too limiting, you need to write a
    function the accepst dynamic SiteIDPK value as a parameter and returns the
    appropriate data as a datareader using real code.

    Without knowing which language your working in there is not much more I can
    tell you.


    --
    Kevin Marshall
    WebXeL.com Ltd
    [url]http://www.webxel.com[/url]

    ASP.NET Dreamweaver Extensions
    [url]http://www.webxel-dw.co.uk[/url]
    "sparky1962" <webforumsuser@macromedia.com> wrote in message
    news:d0njl1$hf8$1@forums.macromedia.com...
    > I'm trying to put a DataGrid inside a Repeater. The idea being that the
    > DataSet
    > that the DataGrid is based on will be re-filled each Repeater loop
    > iteration
    > with a parameter based on a "FieldValue" from the Repeater's DataSource.
    >
    > <MM:DataSet id="SentinelsDataSet" CommandText='<%# "SELECT * FROM
    > Sentinels
    > WHERE SiteIDFK = ?" %>' >
    > <Parameters>
    > <Parameter Name="@SiteIDFK" Value='<%#
    > SitesDataSet.FieldValue("SiteIDPK", Container) %>' Type="Integer" />
    >
    > <ASP:Repeater runat="server" DataSource='<%# SitesDataSet.DefaultView %>'>
    > <ItemTemplate>
    > <asp:DataGrid id="SentinelsDataGrid"
    > DataSource="<%# SentinelsDataSet.DefaultView %>"
    >

    Kevin Marshall 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