| | |
Creating pages and such
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2005
Posts: 10
Reputation:
Solved Threads: 0
Hello,
I'm currently trying to work on a project and I am stuck. I need to take products from a database and show them on multiple pages according to manufacturer and category. I also will then need to have the pages written out in html, because of were I need to upload them doesn't support asp.net. (Don't ask just go along with it.) I've been able to create a loop that makes my table and separates my categories, but they all show up on one page. Any direction in help would be greatly appreciated.
Thanks,
KG
I'm currently trying to work on a project and I am stuck. I need to take products from a database and show them on multiple pages according to manufacturer and category. I also will then need to have the pages written out in html, because of were I need to upload them doesn't support asp.net. (Don't ask just go along with it.) I've been able to create a loop that makes my table and separates my categories, but they all show up on one page. Any direction in help would be greatly appreciated.
Thanks,
KG
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
I would suggest using a control that supports custom paging, but that wouldn't help in your environment.
I would have a loop, reading your products out of a database. Write pure HTML out to a file. Use a counter, when your loop iterates through a given number of products, close the current HTML file, and open a new one. Your one loop will generate any number of HTML files.
I would have a loop, reading your products out of a database. Write pure HTML out to a file. Use a counter, when your loop iterates through a given number of products, close the current HTML file, and open a new one. Your one loop will generate any number of HTML files.
•
•
Join Date: Apr 2005
Posts: 10
Reputation:
Solved Threads: 0
Hello,
I'm trying to use the StreamWriter, but I'm running into a problem. I'm using a Select statement to separate my categories and under each case I'm trying send it to a new page. But streamwriter wants the file closed when it goes back in to write. I've thought about using an append method. But if I were to run the program to update the pages after period of time I'm afraid that will just append to what I already have and then I'll have a big mess. I've thought about doing some kind of if statement, but not exactly sure how to execute it. Any direction would be great.
KG
I'm trying to use the StreamWriter, but I'm running into a problem. I'm using a Select statement to separate my categories and under each case I'm trying send it to a new page. But streamwriter wants the file closed when it goes back in to write. I've thought about using an append method. But if I were to run the program to update the pages after period of time I'm afraid that will just append to what I already have and then I'll have a big mess. I've thought about doing some kind of if statement, but not exactly sure how to execute it. Any direction would be great.
KG
![]() |
Similar Threads
- CMS vs. DW (Existing Scripts)
- Print from Mac to PC (OS X)
Other Threads in the ASP.NET Forum
- Previous Thread: [DBNETLIB] error
- Next Thread: SqlDataReader
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers






