473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

forum page

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
1 1284
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Daan | last post by:
Hello all, I have attempted to write my own forum using PHP and MySQL. It works, but the efficiency is far from ideal. It takes a long time to load e.g. the list with threads in a certain forum....
0
by: Robert Oschler | last post by:
Hello all, I have set up a forum dedicated to WordNet Developers. I just added a section for Python developers that are using PyWordNet or other Python based WordNet interface modules or code. ...
18
by: Jonas Melian | last post by:
Hi, I'm going to say a suggestion, why don't you create a forum like the one of Ruby (http://www.rubyforums.com/)? for the novices this is a great help, better than a mail list It's also...
14
by: Matt | last post by:
Any progammers looking for a killer app to develop? How about a voice enabled forum? One of the most powerful, exciting, and engrossing experiences on the Internet is the Forum. The first great...
31
by: pamelafluente | last post by:
Dear guys, I hope not to be intrusive. I just want to inform you, in case someone cares, about a new forum, where Questions or Announcements on topics relevant to this newsgroup can be freely...
13
by: Joni Nieminen | last post by:
Is there any code or script which do forum in the page! I can do little javascript.. Help?!
3
by: kang jia | last post by:
hi i am doing reply page for forum, users can reply for the specific topic they would like to reply. Firstly of all, when click the topic name in topic page. i will redirect them to reply page....
31
by: DirtySnipe | last post by:
I have created a php form with dynamic drop down boxes in it which pull the options from a database. The boxes work fine and the data gets submitted fine but im having a problem getting the box to...
2
by: tridirk | last post by:
Hi; I am getting a Objceted Expected Error on my forum site. I can't find what is wrong? Line: Char: Error: Object expected Code:0 the site is My SMF Forum
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.