在iframe asp.net中显示html页面 [英] show the html page in the iframe asp.net

查看:121
本文介绍了在iframe asp.net中显示html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



当我尝试插入html页面时出错。



我的代码是:



Hello,

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

My code is:

protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)
    {

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



代码设计:


code desing:

<iframe  runat="server" name="frame1" scrolling="auto" id="frame1"  width="900px" height="800px"
     frameborder="1"  >









HTTP错误404.0 - 未找到

资源你正在寻找已被删除,更改名称,或暂时无法使用。







Plz告诉我该怎么做





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

推荐答案

你好b $ b请删除frame1.DataBind();线。

Yours Farhad。
Hi Please delete "frame1.DataBind();" line.
Yours Farhad.


这篇关于在iframe asp.net中显示html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆