forum page

  • Thread starter Thread starter arnabit
  • Start date Start date
A

arnabit

i am building a forumpage.my problem is that I am not able to send an
id through hyperlink. i am writing the specic asp.net code for
convinience-

<asp:GridView ID="grdForums" runat="server" Width="100%" >
<Columns>
<asp:BoundField DataField="ForumId" HeaderText="ForumId" />

<asp:BoundField DataField="categoryID"
HeaderText="categoryID" />
<asp:HyperLinkField HeaderText="ForumName"
DataNavigateUrlFields="ForumName" DataNavigateUrlFormatString="
linking.aspx" DataTextField="ForumName" />
<asp:BoundField DataField="ForumDesc"
HeaderText="ForumDesc" />
<asp:BoundField DataField="createdby"
HeaderText="createdby" />
<asp:BoundField DataField="dateCreated"
HeaderText="dateCreated" />
<asp:BoundField DataField="isactive" HeaderText="isactive"
/>
</Columns>

</asp:GridView>
&nbsp;

please help me how i would be able to send Forum_Id to the Linking.aspx
page
 
This is because you have not provided for the field to be on the querystring.
It would need to look something like so:

<asp:HyperLinkField HeaderText="ForumName"
DataNavigateUrlFields="ForumName" DataNavigateUrlFormatString="
linking.aspx?ForumName={0}" DataTextField="ForumName" />

Peter
 
Back
Top