Hi everyone,
I have a group of pages which have an ID bound to an XML source.
Within each page, I've integrated a hidden field which is bound to the ID:
<asp:HiddenField ID="storyid" runat="server" Value='<%# Bind("storyid") %>' />
And the code behind:
Dim storyid As HiddenField = DirectCast(FormView1.FindControl("storyid"), HiddenField)
storyid.Value = Request("id")
This works just fine. What I want to do is to pass this hidden field value to a Datagrid at the bottom of the page, so that the datagrid only shows the data relevant to each particular page.
Currently I have:
SelectCommand="SELECT Name, Comment, storyid FROM dbo.Table1 WHERE (storyid = @storyid)
< ...
Go to the complete details ...