Ask a Question related to ASP Database, Design and Development.
-
Mike #1
Layout and ASP with DB
Hello all,
I have a question, here is my situation. I am using a SQL
Server database and ASP to display the front page of a
website. Now this front page is generated from the
content of the database, it is an article management
system. When users go to the front page, they will see
all the articles that exist in the database, the titles
and 100 characters of the body only, so if they click the
title or the body, it opens up the entire article in
another window. Now this frontpage has a two column
layout ex:
title1 title2
body2 body2
Here is where the problem exist, if I have three articles
how can I display it like this:
title1 title2
body1 body2
title3
body3
Should I use x=mod/2, if x =0 then print to the right,
else print to the left or something similiar? How would I
account the empty column where title4 and body4 should be?
Do you count the articles first then based on the number
of articles divide it by 2 or what? Any and all help
would be appreciated.
Mike Guest
-
CSS Layout
Hello, can anybody tell me if it's more difficult (or not) to administer a site with Contribute if that site is built using CSS-positioned DIVs? ... -
CSS layout help
Hello, all. I have a page here with some placeholder text in it: http://student.uncw.edu/org/bahaiclub/. The problem is with the #links <div> on... -
PS CS layout
When I launch PS CS on my Mac PowerBook G4, I get the menus, tools & palates....but the work area is not grey... its my desktop. My desktop appears... -
[Q] LAyout & FM Pro
I've created a portal that spans over several pages. I wish the layout view offered a bit more flexibility than what seems currently the case. ... -
Q: layout id
Can one change the layout id number? Currently I have two layouts ( id 6 and 7 ). Using instant web publisher, the search results, when clicked,... -
Aaron Bertrand [MVP] #2
Re: Layout and ASP with DB
Use mod within your loop. You shouldn't have to adjust this code very much
to fit your needs:
[url]http://www.aspfaq.com/2247[/url]
"Mike" <anonymous@discussions.microsoft.com> wrote in message
news:001501c3a7a5$8bf27130$a301280a@phx.gbl...> Hello all,
>
> I have a question, here is my situation. I am using a SQL
> Server database and ASP to display the front page of a
> website. Now this front page is generated from the
> content of the database, it is an article management
> system. When users go to the front page, they will see
> all the articles that exist in the database, the titles
> and 100 characters of the body only, so if they click the
> title or the body, it opens up the entire article in
> another window. Now this frontpage has a two column
> layout ex:
>
> title1 title2
> body2 body2
>
> Here is where the problem exist, if I have three articles
> how can I display it like this:
>
> title1 title2
> body1 body2
>
> title3
> body3
>
> Should I use x=mod/2, if x =0 then print to the right,
> else print to the left or something similiar? How would I
> account the empty column where title4 and body4 should be?
>
> Do you count the articles first then based on the number
> of articles divide it by 2 or what? Any and all help
> would be appreciated.
Aaron Bertrand [MVP] Guest
-
William Tasso #3
Re: Layout and ASP with DB
Mike wrote:
This seems like a CSS question:>...
> Here is where the problem exist, if I have three articles
> how can I display it like this:
>
> title1 title2
> body1 body2
>
> title3
> body3
>
> Should I use x=mod/2, if x =0 then print to the right,
> else print to the left or something similiar? How would I
> account the empty column where title4 and body4 should be?
>
> Do you count the articles first then based on the number
> of articles divide it by 2 or what? Any and all help
> would be appreciated.
div.artical{
float:left;
width:48%;
}
--
William Tasso - [url]http://WilliamTasso.com[/url]
William Tasso Guest
-
Mike #4
Re: Layout and ASP with DB
Excellent, thanks!
this code very much>-----Original Message-----
>Use mod within your loop. You shouldn't have to adjustmessage>to fit your needs:
>[url]http://www.aspfaq.com/2247[/url]
>
>
>
>
>
>"Mike" <anonymous@discussions.microsoft.com> wrote inSQL>news:001501c3a7a5$8bf27130$a301280a@phx.gbl...>> Hello all,
>>
>> I have a question, here is my situation. I am using athe>> Server database and ASP to display the front page of a
>> website. Now this front page is generated from the
>> content of the database, it is an article management
>> system. When users go to the front page, they will see
>> all the articles that exist in the database, the titles
>> and 100 characters of the body only, so if they clickarticles>> title or the body, it opens up the entire article in
>> another window. Now this frontpage has a two column
>> layout ex:
>>
>> title1 title2
>> body2 body2
>>
>> Here is where the problem exist, if I have threewould I>> how can I display it like this:
>>
>> title1 title2
>> body1 body2
>>
>> title3
>> body3
>>
>> Should I use x=mod/2, if x =0 then print to the right,
>> else print to the left or something similiar? Howbe?>> account the empty column where title4 and body4 should>>>
>> Do you count the articles first then based on the number
>> of articles divide it by 2 or what? Any and all help
>> would be appreciated.
>
>.
>Mike Guest



Reply With Quote

