PDA

View Full Version : Newbie want to make detail pages by dreamweaver aplication object


lamgiaheo
08-05-2008, 07:38 PM
let's start by looking this tab:
<table width="200" border="2" cellspacing="0" cellpadding="0">
<tr>
<td>item 1 </td>
</tr>
<tr>
<td>item2</td>
</tr>
<tr>
<td>item3</td>
</tr>
<tr>
<td>item4</td>
</tr>

</table>
question is how i make detail page by clicking on each item, anyone give me instruction (step by step as possible) using asp!!!

Spudhead
08-06-2008, 10:14 AM
Sorry, what?

How do you make a detail page by clicking on each item? You make them into links. That go to detail pages, I guess. Which bit specifically are you having trouble with?

lamgiaheo
08-06-2008, 06:25 PM
Sorry, what?

How do you make a detail page by clicking on each item? You make them into links. That go to detail pages, I guess. Which bit specifically are you having trouble with?

furthermore when i click on item1 asp page load my data related to item1,sb tell me how to deal with it by manipulating Dreamweaver's application object ..

brazenskies
08-07-2008, 08:34 AM
bin DreamWeaver and read this (http://www.w3schools.com/ado/ado_ref_recordset.asp)

That's if you want to use ASP

brazenskies
08-07-2008, 10:03 AM
I'm feeling generous this morning...



<%
dim prodID
dim adoCon
dim adoRS
dim sql

prodID = replace(request.querystring("prodID"),"'","")

Set adoCon = Server.CreateObject("ADODB.CONNECTION")
adoCon.Open Application("Your connection String")

set adoRS = Server.CreateObject("ADODB.RECORDSET")
sql = "select * from tablename where productID= '"&prodID&"'"

adoRS.open sql, adoCon

dim productname
dim productDescription
dim Price

productname = adoRS("productname")
productDescription = adoRS("productDescription")
price = adoRS("price")

%>


Then you need to do the following to dispay values from your search query...


<html>
...
<body>
ProductName = <%=productname%><br />
Description = <%=productDescription%><br />
Price = <%=formatnumber(price),2%>
</body>
</html>


Id suggest doing ALOT of reading if you want to be able to do this properly!!! This is only a start for you!

brazenskies
08-10-2008, 07:03 PM
don't know why we bother!!