Click here to Skip to main content
15,942,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm working in asp,in dreamweaver. In left frame, the page is not displaying, instead its code is displayed. Here is the code, frame 10 and 11 is added. What do they do?

Old sample
XML
  <frameset rows="*,1 cols="163; framespacing=1; frameborder=yes; border=1 bordercolor=#CCCCCC">
    <frame src="page1.asp; name="leftFrame" scrolling="No" >
    <frame src="login.asp" name="mainFrame">
    <frame src="UntitledFrame-10.htm">
    <frame src="UntitledFrame-11.htm">
  </frameset>
</frameset>


Modified sample moved from answer
XML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Frame page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="69,*" cols="*" framespacing="1" frameborder="yes" border="1" bordercolor="#CCCCCC">
  <frame src="main.asp" name="topFrame" scrolling="NO" noresize >
  <frameset rows="*,1" cols="163,*" framespacing="1" frameborder="yes" border="1" bordercolor="#CCCCCC">
    <frame src="side.asp" name="leftFrame" scrolling="No" >
    <frame src="login.asp" name="mainFrame">
    <frame src="UntitledFrame-10.htm">
    <frame src="UntitledFrame-11.htm">
  </frameset>
</frameset>
<noframes>
<body>
</body></noframes>
</html>
Posted
Updated 30-Jan-11 7:55am
v4
Comments
Ryan Zahra 27-Jan-11 3:51am    
Can you please add more detail as to what you want to accomplish?

Frame 10 and Frame 11 are trying to load an htm web page.
Manfred Rudolf Bihy 27-Jan-11 16:37pm    
Hi maahanm, was my assumption correct that you see the ASP code instead of it being executed? If this is the case please follow my advice on checking your IIS configuration.
Sergey Alexandrovich Kryukov 30-Jan-11 13:55pm    
Edited a title; old one did not indicate exact topic.
--SA

You 1) violated XML structure (and even HTML), 2) failed to define layout for all 4 HTML pages. Because of invalid layout you could only see first page "page1.asp" on top.

Replace first opening tag with the following:

HTML
<frameset rows="20%, 80%" cols="30%, 60%" framespacing="1" frameborder="yes" border="1" bordercolor="#CCCCCC">


All four pages (URLs defined by src attributed) should exist.

For more detail, read this: http://htmlhelp.com/reference/html40/frames/frameset.html[^], and, for example, this: http://www.w3schools.com/tags/tag_frameset.asp[^].

(Attention! There are a lot of warnings against using frames -- you can find a lot of posts in the topic. I personally don't care.)

Good luck!
—SA
 
Share this answer
 
Comments
Espen Harlinn 27-Jan-11 14:21pm    
5+ Good answer
First of all you need to correct your HTML code sample as it contains unpaired quotes.
Regarding your question as to why you are seeing code is that your IIS probably isn't configured to run ASP scripts. Please check your IIS configuration for that.

Best Regards,
Manfred
 
Share this answer
 
Comments
Espen Harlinn 27-Jan-11 14:24pm    
While OP tagged question with asp, he is using dreamweaver and not showing any asp related stuff. I guess he is not using asp.et at all ..., actually he has added an answer to his own question - no asp.net ...
Manfred Rudolf Bihy 27-Jan-11 16:28pm    
When I said ASP Espen I meant ASP. OP seems to use this outdated technology :). I still think if he sees "code" as he put it there must be some configuration issue with IIS.
Espen Harlinn 27-Jan-11 17:09pm    
YES, you are so right, I missed the src="main.asp" ...

Maybe he needs to know about this nice little download: http://www.microsoft.com/express/Downloads/ and master pages - he would probably be infinitely better off leveraging .Net 4 instead of the old asp

Sergey Alexandrovich Kryukov 27-Jan-11 16:11pm    
Correct answer + useful suggestion, my 5.
--SA
<frame src="page1.asp; name="leftFrame" scrolling="No" >


Check out you missed the double quote "page1.asp".
 
Share this answer
 
ok thanks for guidance Bihy
i wanted to ask when we develop 3 frames page, i connect top frame with main.asp page, the left frame with a link page and right will be displaying login page.
i want the right frame will display the link clicked in left frame.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900