Closed Thread Icon

Topic awaiting preservation: ASP Response.write/execute Pages that link to <a href="https://ozoneasylum.com/backlink?for=12419" title="Pages that link to Topic awaiting preservation: ASP Response.write/execute" rel="nofollow" >Topic awaiting preservation: ASP Response.write/execute\

 
Author Thread
Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 09-12-2002 14:45

i am generating a page out of a db when i use response.write i can read out the html if i use execute it will do me the asp how can i combine them so it does both asp and html? (probably a simple answer but i dont know it)

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 09-13-2002 10:11

it is unclear what you're trying to do...can you please show an example of the desired output ?

Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 09-13-2002 13:21

well i want do generate the sites out of a db well say a complete newsscript in the db and then read it out but asp wil not output html and asp lets say i have the news in a table response.write will give me the table and execute will give me the news but i need something to output asp and html ..clearer now ?

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 09-13-2002 13:54

well, i still don't get you...ASP and DB will get you what you want.

here's a sample code:

code:
<table>
<%
q = "select * from mytable";
Rec.Open(q, DBCon);
while (!Rec.Eof)
{
%>
<tr>
<td width="19%">
<%=Rec("cn")%>
</td>
<td width="19%">&nbsp;
<%=Rec("cname")%>
</td>
<td width="20%">&nbsp;
<%=Rec("tduration")%>
</td>
<td width="5%">&nbsp;
<%=Rec("tcost")%>
</td>
</tr>
<%
}
%>
</table>



Blacknight
Bipolar (III) Inmate

From: INFRONT OF MY PC
Insane since: Dec 2001

posted posted 09-14-2002 12:58

well the problem is when i do it the way you wrote is that it wont execute the asp scrips

could it be that i use adodb and a dns to connect to the DB???



[This message has been edited by Blacknight (edited 09-14-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu