2
Answers

how to display the questions in a category wise in forum

Ask a question

Hai,
    I want to display my forum in a category wise like
I want to display this as a category wise,forum name is displayed more than once how to solve this,please any one can suggest me,i added this in a table and also i added title id for each forum,
Pls any one can tell me to solve this problem

Title                                                         User                      Last Post
Software Forum
Java
it is a complicated language                   nandhu             12/27/2010 12:09:43 PM

Software Forum
about unit testing
I dont know the definition of unit testing,any one suggest me
                                                              vishnu               1/13/2011 12:15:00 AM
Hardware Forum
network
in network i dont know the diff between hub and router,pls any one can explain me                                                         vani                    12/27/2010 1:11:04 PM
Hardware Forum
cddrive
24x readspeed 4x write speed brand lg, tray is jamming what is the solution                                                  vani                    12/27/2010 1:27:13 PM
i use this coding
while
(rdr.Read())
{

Response.Write(
"<tr><td>" + rdr["category"] + " Forum</td></tr>");
string str = rdr["title"].ToString();
string user = rdr["owner"].ToString();
Response.Write(
String.Format("<br><tr><td><b><a href='seven.aspx?title1={0}'>{0}</a></b><br>&nbsp;&nbsp;&nbsp;{1}</td>", str, rdr["suggestion"]));
Response.Write(
"</td><td>" + user + "</td><td>" + rdr["date"] + "</td></tr>");
}

 

Answers (2)