Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 17th, 2005, 02:40 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I guess maybe I was thinking along these lines:

<asp:datalist runat="server" id="lstQuestions"
    repeatcolumns="3" repeatdirection="Horizontal"
    repeatlayout="Table">
    <itemtemplate>
        <uc:MyQuestionControl runat="server" />
    </itemtemplate>
</asp:datalist>

You bind a list of questions to the datalist. You'd probably bind a question ID to the control in the template, then the question control loads the question and knows what do to display that particular question. The datalist handles the layout in the 3 column tabular format.

-Peter
 
Old June 17th, 2005, 02:43 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I am tryin all kinds of things. This is really a headache. I think I may just use your original suggestion by using hard returns between controls. I in way over my head. Thanks for your help!!! If you come up with anything else, please let me know.

 
Old June 19th, 2005, 08:45 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It's probably better to just start with the simple approach of just a loop thru all the questions with come logic that dumps out the formatting where you need it. It might also be more efficient in the end at this point.

-Peter
 
Old June 20th, 2005, 12:12 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I don't know why I didn't think of it before, but I am adding the controls to a table and it seems to be working pretty well. Got the idea from another post here. DUH.. thanks for the help!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically include an aspx page ndkicha_1981 General .NET 0 October 19th, 2007 03:12 AM
how to dynamically change an HTML page kpnikhil PHP How-To 1 September 7th, 2007 03:53 AM
Build an array dynamically yeva40 Javascript How-To 1 May 27th, 2005 03:09 PM
aspx - dynamically expanding the page vhrao General .NET 1 November 5th, 2004 03:49 PM
Dynamically Build 1 Xtab Qry Based On 6 Xtab Qry's Rood67 Access 1 March 4th, 2004 06:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.