Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layers and ASP pages

Status
Not open for further replies.

QatQat

IS-IT--Management
Nov 16, 2001
1,031
IT
Hi there,

First of all I am very new to dreamweaver.
I have got a lot of ASP pages developed to publish and update a database online. Up to now I have been using frames to have a menu on the side and display the records on the main area with very poor graphic results.

I now dedided to use layers to have more flexibility and I manage to display correctly text, pics and all objects on different layers.
For my pages now I need to link my ASP to layers

What I tried to do is to select the LAYER tag instead of DIV or SPAN and try to specify my ASP page in the 'src' field of the property box.

It does not work; why?
Can layers diplay the content of a different html or ASP document?


Thank you


Qatqat The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
I would dump the layers all togther...later in development you will have a hard time processing / posting /getting forms etc...
rather use NewWin if possoble
 
QatQat,

As you are comfortable coding ASP and want to use <div> tags to make laying out web pages simple, I would advice you to download this


Its a blog application written in ASP and uses layers for layout. This will give you an idea how ASP works with layers.

ranjan
Dreamlettes - A dreamweaver resource
blogMX - DreamweaverMX in black and white and shades of gray
 
Thank you MXjunkie for you interest.

However I found out that it is much easier than what I expected
In fact if you simply invlude the VBScript code in the <DIV></DIV> tags it works.

Example

This is a page that I wrote to display poll results

------Here starts the layer-------------

<div id=&quot;pollResults&quot; style=&quot;position:absolute; left:123px; top:100px; width:530px; height:649px; z-index:6; visibility: visible&quot;>

----------Here starts the ASP database connection------

<%
Set Conn = Server.CreateObject(&quot;ADODB.Connection&quot;)
Conn.Open (&quot;Driver={MySQL}; SERVER=192.168.1.3; DATABASE=dbname; UID=root; PASSWORD=password&quot;)
%>



------------here I count the votes-------------

<%

'ELSEIF task = &quot;addMenu&quot; THEN
strSQL = &quot;select count(pollresult) AS COUNT, pollresult from poll1 group by pollresult&quot;
Set RS = Server.CreateObject(&quot;ADODB.Recordset&quot;)
RS.Open strSQL, Conn, 3, 3

%>


--------here I display the results-------------

<table width=&quot;160&quot; align=&quot;left&quot;>
<TR>
<TD colspan=&quot;2&quot;><font size=&quot;+3&quot;>Results</font></TD></TR>
<TD>Excellent</TD><TD><%= RS(&quot;COUNT&quot;)%></TD></tr>

<%
RS.Movenext
%>
<TD>Good</TD><TD><%= RS(&quot;COUNT&quot;)%></TD></tr>
<%
RS.Movenext
%>
<TD>Fair</TD><TD><%= RS(&quot;COUNT&quot;)%></TD></TR>
<%
RS.Movenext
%>
<TD>Poor</TD><TD><%= RS(&quot;COUNT&quot;)%></TD></TR>

</table>

-----------end of page--------------


</div>


------------close the layer--------------



As a matter of fact I don't need Dreamweaver at all.


Anyway I apologize for not posting the solution I found, I hope I made up for it now.

Thanks again



Bye


Qatqat The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top