F
farseer
Hello,
i am trying to become more proficient in ASP.NET and VS (that doesn't
mean i am newb at programming, just new to the ASP.NET framework and
it's tools). To do this, i have selected a project and want to see it
through. WHat i would like to do is create a forum like this one:
http://forum.yetanotherforum.net/
I have not downloaded the software at the above site, so i don't know
how the author wrote it. Again, for me, this is an exercise to learn.
Thus far i have been impressed (and at the same time dejected, but
that's another story) by some of the tools in Visual Studio, such as
the Visual DataSet designer that creates a data access layer for
you...something that i have always done myself in the past. Now what
i would like to do is hook that up to a DataView and see if it can
render a page similar to this one: http://forum.yetanotherforum.net/
The data i have from my stored procedure looks something like this:
cat_id cat_name forum_id forum_name forum_description
1 General Forums 1 News News
1 General Forums 2 Discussion Discussion
2 Programming 3 Design Patterns Design Patterns
2 Programming 4 C# C#
3 Help 5 General Help General Help
3 Help 6 Bugs Bugs
Do as you can see, each forum belongs to a category. I would like to
list the category in one row, with the forums following that.
Something like this:
Forums Topics Posts Last Post
General Forums
News
Dicussion
Programming
Design Patterns
C#
Help
General help
Bugs
Can this be done using a GridView? or will i have to iterate through
the dataset and render this as a table myself? If i needed to do this
myself using a table, how would one do this with the new code behind
model...do i put place placeholders for the table in HTML and in the
code replace that with the table i generate while iterating through the
dataset? In general, how would you solve this problem efficiently?
thank you kindly
i am trying to become more proficient in ASP.NET and VS (that doesn't
mean i am newb at programming, just new to the ASP.NET framework and
it's tools). To do this, i have selected a project and want to see it
through. WHat i would like to do is create a forum like this one:
http://forum.yetanotherforum.net/
I have not downloaded the software at the above site, so i don't know
how the author wrote it. Again, for me, this is an exercise to learn.
Thus far i have been impressed (and at the same time dejected, but
that's another story) by some of the tools in Visual Studio, such as
the Visual DataSet designer that creates a data access layer for
you...something that i have always done myself in the past. Now what
i would like to do is hook that up to a DataView and see if it can
render a page similar to this one: http://forum.yetanotherforum.net/
The data i have from my stored procedure looks something like this:
cat_id cat_name forum_id forum_name forum_description
1 General Forums 1 News News
1 General Forums 2 Discussion Discussion
2 Programming 3 Design Patterns Design Patterns
2 Programming 4 C# C#
3 Help 5 General Help General Help
3 Help 6 Bugs Bugs
Do as you can see, each forum belongs to a category. I would like to
list the category in one row, with the forums following that.
Something like this:
Forums Topics Posts Last Post
General Forums
News
Dicussion
Programming
Design Patterns
C#
Help
General help
Bugs
Can this be done using a GridView? or will i have to iterate through
the dataset and render this as a table myself? If i needed to do this
myself using a table, how would one do this with the new code behind
model...do i put place placeholders for the table in HTML and in the
code replace that with the table i generate while iterating through the
dataset? In general, how would you solve this problem efficiently?
thank you kindly