Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old June 17th, 2005, 02:40 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
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
Reply With Quote
  #12 (permalink)  
Old June 17th, 2005, 02:43 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,346
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.

Reply With Quote
  #13 (permalink)  
Old June 19th, 2005, 08:45 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
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
Reply With Quote
  #14 (permalink)  
Old June 20th, 2005, 12:12 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,346
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!

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 02:49 PM
Dynamically Build 1 Xtab Qry Based On 6 Xtab Qry's Rood67 Access 1 March 4th, 2004 05:02 PM



All times are GMT -4. The time now is 04:22 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.