By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,919 Members | 1,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,919 IT Pros & Developers. It's quick & easy.

forum page

P: n/a
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

Sep 22 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ar*****@gmail.com" wrote:
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>
please help me how i would be able to send Forum_Id to the Linking.aspx
page

Sep 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.