Click here to Skip to main content
14,935,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Got This below Error When I DisPlay The .html file In Iframe tag Using Asp.Net

HTTP Error 404 - Not Found.
Version Information: ASP.NET Development Server

This is my .aspx Page

<iframe id="frmhtm1" runat="server" border="0" frameborder="0" height="220px"

aspx.cs Page:

frmhtm1.Attributes.Add("src", "/css/HTMLPage1.htm?seed=");

and i have used master page..,How to display this html file in iframe

Anybody tell me,how will i resolve this error???????
Updated 10-Mar-14 6:17am
Maarten Kools 10-Mar-14 11:17am
Use the right URL? 404 is resource not found, meaning the file/page does not exist.

If you are sure the file/page exists, post some relevant code so we can actually see what you're doing.

1 solution

Hi try debugging your application. Here is a long list of good articles on the subject.
As Maarten Kools said, it's not finding your page and there could be a number of reasons why.[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

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