如何在ASP.Net中加载HTML(带有Java脚本)? [英] How can I load HTML(with Java Script on it) in ASP.Net?

查看:71
本文介绍了如何在ASP.Net中加载HTML(带有Java脚本)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是我无法在ascx中加载html文件.我的html文件中有一个javascript.该程序是否仍可以使用html中的javascript.

Problem is I can''t load html file in the ascx. my html file has a javascript. Is that possible that the program can still use the javascript in html. which the html is inside the ASP.Net ascx file?

推荐答案

仍然不清楚您的问题.但是通常,如果您确实有外部资源(例如html页面,pdf文件,甚至外部网站),则可以使用<iframe></iframe>标记进行引用.

例如
Still your question not clear. But generally if you do have externally resources such(html page, pdf file, even external web site), you can reference them using <iframe></iframe> tag.

E.g
<iframe src="~/yourhtmlFile.htm" />



希望对您有帮助.



I hope this helps you well.


这篇关于如何在ASP.Net中加载HTML(带有Java脚本)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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