Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 August 30th, 2005, 03:20 PM
Authorized User
 
Join Date: Aug 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Master detail with datalist or repeater

Dear all,

I need to display master detail table in .aspx file.
1) My requirement is that I am selecting some categories in one page
2) I am passing the catoryid as session variable to the next page.
3) So the categoryid I will get in next page will look like 1,5,7 (an example only, it can vary)

Till here I have finished. The rest is which I need now.

4) to subcategory table I am passing this 1,5,7 (in 1,5,7 format itself)
5) From subcategory table & categorytable I have to retrieve categoryname ,categoryid,subcategoryname,subcategoryid and display it in the dreamweaver code format given with this.

I am pasting the dreamweaver code(just screen design)which I am trying to generate in asp.net.To get a view of it, please copy and save it as .html file and run.If anybody knows the solution please help me.


Table discription
--------------
1) Category is from category table which is having categoryid and category name
2) Subcategory table contains Subcategoryid,subcategoryname & categoryid.


Thanks
Ceema


Code:
<table width="71%" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#CCCCCC">
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
              <tr> 
                <td colspan="2" bgcolor="#999900" height="2"> 
                  <div align="center"><b>Select SubCategories</b></div>
                </td>
              </tr>
              <tr bgcolor="#669933"> 
                <td height="2"><b bgcolor="#F5F5F5">Category1 

                  <input type="checkbox" name="checkbox13" value="checkbox" checked>

                  </b></td>
                <td height="2">&nbsp;</td>
              </tr>
              <tr> 
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr> 
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category1 A</b></td>
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category1 B</b></td>
              </tr>
              <tr> 
                <td>  
                  <input type="checkbox" name="checkbox" value="checkbox">
                  </td>
                <td>  
                  <input type="checkbox" name="checkbox2" value="checkbox">
                  </td>
              </tr>
              <tr> 
                <td></td>
                <td></td>
              </tr>
              <tr> 
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category1 C</b></td>
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category1 D</b></td>
              </tr>
              <tr> 
                <td>  
                  <input type="checkbox" name="checkbox3" value="checkbox">
                  </td>
                <td>  
                  <input type="checkbox" name="checkbox4" value="checkbox">
                  </td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr bgcolor="#669933"> 
                <td><b bgcolor="#F5F5F5">Category3 

                  <input type="checkbox" name="checkbox14" value="checkbox" checked>

                  </b></td>
                <td></td>
              </tr>
              <tr> 
                <td></td>
                <td></td>
              </tr>
              <tr> 
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category3 A</b></td>
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category3 B</b></td>
              </tr>
              <tr> 
                <td>  
                  <input type="checkbox" name="checkbox5" value="checkbox">
                  </td>
                <td>  
                  <input type="checkbox" name="checkbox6" value="checkbox">
                  </td>
              </tr>
              <tr> 
                <td></td>
                <td></td>
              </tr>
              <tr> 
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category3 C</b></td>
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category3 D</b></td>
              </tr>
              <tr> 
                <td>  
                  <input type="checkbox" name="checkbox7" value="checkbox">
                  </td>
                <td>  
                  <input type="checkbox" name="checkbox8" value="checkbox">
                  </td>
              </tr>
              <tr> 
                <td></td>
                <td></td>
              </tr>
              <tr> 
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category3 E</b></td>
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category3 F</b></td>
              </tr>
              <tr> 
                <td>  
                  <input type="checkbox" name="checkbox9" value="checkbox">
                  </td>
                <td>  
                  <input type="checkbox" name="checkbox10" value="checkbox">
                  </td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr bgcolor="#669933"> 
                <td><b bgcolor="#F5F5F5">Category11 

                  <input type="checkbox" name="checkbox15" value="checkbox" checked>

                  </b></td>
                <td></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category11 A</b></td>
                <td bgcolor="#F5F5F5"><b bgcolor="#F5F5F5">Sub 
                  Category11 B</b></td>
              </tr>
              <tr> 
                <td>  
                  <input type="checkbox" name="checkbox11" value="checkbox">
                  </td>
                <td>  
                  <input type="checkbox" name="checkbox12" value="checkbox">
                  </td>
              </tr>
              <tr> 
                <td></td>
                <td></td>
              </tr>
              <tr> 
                <td colspan="2"> 
                  <div align="center"><b class="mainnav">Submit</b></div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>





Similar Threads
Thread Thread Starter Forum Replies Last Post
master-detail hhpatek ADO.NET 0 April 3rd, 2008 02:53 PM
Master Detail prasanta2expert Access VBA 1 October 1st, 2007 06:37 AM
Master-Detail with Datalist comicghozt ASP.NET 1.0 and 1.1 Basics 0 June 7th, 2006 03:41 AM
Displaying master/detail relationship in datalist cq_ted ASP.NET 1.x and 2.0 Application Design 0 May 10th, 2006 01:07 AM
master/detail beeyule Dreamweaver (all versions) 1 January 18th, 2005 02:59 AM





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