Click here to Skip to main content
15,911,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

when i am trying to insert the html page it is giving error.

My code is:

C#
protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)
    {

        string items = e.Item.Text;
        string path = items;
        frame1.Attributes["src"] = path;
        frame1.DataBind();
    }

code desing:
ASP.NET
<iframe  runat="server" name="frame1" scrolling="auto" id="frame1"  width="900px" height="800px"
     frameborder="1"  >




HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.



Plz tell me how to do
Posted
Updated 11-Dec-13 22:50pm
v2
Comments
ZurdoDev 9-Dec-13 8:30am    
The error is clear. However, I don't think you need to DataBind a frame. That seems weird. Just settings its src should be enough.
sadhana4 9-Dec-13 8:42am    
when clicked the NavigationMenu_MenuItemClick the html page did not visiable
No need to data bind.
[no name] 10-Dec-13 2:12am    
you are not passing data to frame1 and you also do not need to bind it. please look at the below link http://msdn.microsoft.com/en-us/library/aa984209(v=vs.71).aspx
Karthik_Mahalingam 12-Dec-13 4:59am    
post your url path ..

1 solution

Hi Please delete "frame1.DataBind();" line.
Yours Farhad.
 
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