Ask a Question related to Dreamweaver AppDev, Design and Development.
-
sparky1962 #1
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
-
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.... -
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... -
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... -
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... -
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'... -
Paul Whitham TMM #2
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...DataSet> I'm trying to put a DataGrid inside a Repeater. The idea being that theiteration> that the DataGrid is based on will be re-filled each Repeater loopSentinels> with a parameter based on a "FieldValue" from the Repeater's DataSource.
>
> <MM:DataSet id="SentinelsDataSet" CommandText='<%# "SELECT * FROM%>'>> 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
-
Kevin Marshall #3
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



Reply With Quote

