Wednesday, 21 August 2013

Would an ASP:DataGrid control be a good choice for this?

Would an ASP:DataGrid control be a good choice for this?

I have been tasked with converting a Classic ASP project to an ASP.Net
project. One of the pages in the original project uses a frameset to build
a table that consists of a header and body:
<frameset rows="175, 300, *" marginwidth="0" marginheight="0" border="0"
id="frmCommentReport">
<frame
src="commentStatusReportHeader.asp?CourseId=<%=Request("CourseId")%>&Id=<%=Request("Id")%>"
scrolling="yes" name="header" marginwidth=0 marginheight=0
border=0 />
<frame src="commentStatusReportBody.asp?CourseId=
%=Request("CourseId")%>&Id=<%=Request("Id")%>" scrolling="yes"
name="body" marginwidth=0 marginheight=0 />
Both the header and body of the table is buit from vbscript embedded in
each page. The header information comes from one datasource. The body
information comes from another.
What I'd like to do, instead of using two frames (or even one frame for
that matter) is just combine the information on an .aspx page in the form
of an ASP:DataGrid control.
Being a neophyte ASP.Net person, I was wondering if using the DataGrid
control would be the way to go? Or, is there another, more preferable
method that someone could suggest.
I appreciate any advice and pointers.
The result looks like this:

No comments:

Post a Comment