Click here to Skip to main content
14,881,364 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 11.0.0.0

This is my .aspx Page

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

width="230px"></iframe>
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???????
Posted
Updated 10-Mar-14 6:17am
v3
Comments
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.

http://www.codeproject.com/search.aspx?q=debugging+ASP.NET&x=0&y=0&sbo=kw[^]
   

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