Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Frames

 
Thread Tools Search this Thread
Old 12-30-2003, 11:39 AM   #1
Default Frames


Hi guys,

I try to use frames on my ASPs. But nothing appears on the screen.

Below you can find the code.


<%@LANGUAGE="VBSCRIPT"%>
<% If Session("teUserName")="" or Session("teUserName")<>"admin" Then
Response.Redirect("index.asp") End If %>

<!--#include file="header.asp"-->

<table border=0 cellspacing=1 cellpadding=2 bgcolor="#ffe4b5"
width="100%">
<tr>
<td class="smallertext"><a href="index.asp">Home</a> » <a
href="protected.asp">A.S.A. Record Form</a> » <a
href="reports.asp">Reports</a></td>
<td class="smallerheader" width=130 align=right valign=bottom><a
href="manage.asp">DB Manage</a></td>
<td class="smallerheader" width=130 align=right>
<%
if session("teLastAccess") <> "" then
response.write "<span title=""User last access was on '" &
formatdatetime(session("teLastAccess"), 1) & "'" & vbCrLf & "at '"&
formatdatetime(session("teLastAccess"), 3) & "'"">"
else
response.write "<span title=""First time access, Welcome."">"
end if
response.write session("teName") & " " & session("teSurname")
&"</span>"
response.write " (<a href=""logout.asp"">Logout</a>)" &"</span>"
response.write "<a href=""passchange.asp"">Change Password</a>"
&"</span>"
%>
</td>
</tr>
</table>

<table width=100%>
<hr class="hrBar" size="1" noshade>
</table>

<frameset framespacing="2" rows="62,*">
<frame name="toolbar" scrolling="no" target="contents"
src="toolbar.asp" marginwidth="0" marginheight="0">
<frameset cols="49%,*">
<frame name="contents" src="contents.asp" scrolling="yes"
marginwidth="0" marginheight="0" target="main">
<frame name="main" src="main.asp" scrolling="auto"
marginwidth="0" marginheight="0">
</frameset>
</frameset>

<!--#include file="footer.asp"-->


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


cvg brown
  Reply With Quote
Old 12-30-2003, 03:02 PM   #2
Kevin Spencer
 
Posts: n/a
Default Re: Frames
Hi cvg,

1. This is an ASP.Net newsgroup, not an ASP newsgroup. in the future, you'll
fare much better at getting an answer on the right newsgroup.

2. Frameset pages should have only Frameset HTML in them, not a mixture of
page HTML and Frameset HTML. A Frameset is simply a container for other
pages, not a page by itself.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"cvg brown" <> wrote in message
news:...
> Hi guys,
>
> I try to use frames on my ASPs. But nothing appears on the screen.
>
> Below you can find the code.
>
>
> <%@LANGUAGE="VBSCRIPT"%>
> <% If Session("teUserName")="" or Session("teUserName")<>"admin" Then
> Response.Redirect("index.asp") End If %>
>
> <!--#include file="header.asp"-->
>
> <table border=0 cellspacing=1 cellpadding=2 bgcolor="#ffe4b5"
> width="100%">
> <tr>
> <td class="smallertext"><a href="index.asp">Home</a> » <a
> href="protected.asp">A.S.A. Record Form</a> » <a
> href="reports.asp">Reports</a></td>
> <td class="smallerheader" width=130 align=right valign=bottom><a
> href="manage.asp">DB Manage</a></td>
> <td class="smallerheader" width=130 align=right>
> <%
> if session("teLastAccess") <> "" then
> response.write "<span title=""User last access was on '" &
> formatdatetime(session("teLastAccess"), 1) & "'" & vbCrLf & "at '"&
> formatdatetime(session("teLastAccess"), 3) & "'"">"
> else
> response.write "<span title=""First time access, Welcome."">"
> end if
> response.write session("teName") & " " & session("teSurname")
> &"</span>"
> response.write " (<a href=""logout.asp"">Logout</a>)" &"</span>"
> response.write "<a href=""passchange.asp"">Change Password</a>"
> &"</span>"
> %>
> </td>
> </tr>
> </table>
>
> <table width=100%>
> <hr class="hrBar" size="1" noshade>
> </table>
>
> <frameset framespacing="2" rows="62,*">
> <frame name="toolbar" scrolling="no" target="contents"
> src="toolbar.asp" marginwidth="0" marginheight="0">
> <frameset cols="49%,*">
> <frame name="contents" src="contents.asp" scrolling="yes"
> marginwidth="0" marginheight="0" target="main">
> <frame name="main" src="main.asp" scrolling="auto"
> marginwidth="0" marginheight="0">
> </frameset>
> </frameset>
>
> <!--#include file="footer.asp"-->
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!





Kevin Spencer
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frames McClain26 The Lounge 0 12-07-2007 09:27 AM
How can i capture some frames from a DVD? [mfk] DVD Video 1 09-19-2007 06:15 PM
Handling frames in asp.net rizwan_087 Software 2 04-23-2007 07:12 AM
Re: GOD=G_uv HOW TO MAKE AN INVISIBLE GOD MOVIE George Hammond DVD Video 1 10-11-2005 06:16 PM
Re: GOD=G_uv HOW TO MAKE AN INVISIBLE GOD MOVIE George Hammond DVD Video 0 10-11-2005 06:21 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46