Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将值发送到Iframe HTML页面_Iframe_Asp Classic - Fatal编程技术网

将值发送到Iframe HTML页面

将值发送到Iframe HTML页面,iframe,asp-classic,Iframe,Asp Classic,我有一个asp页面,在asp页面中有一个包含HTML页面的iframe。我需要的是将两个值从asp页面发送到内部HTML页面。这是怎么可能的。您可以将它们作为查询字符串变量传递: <iframe src="page.asp?var1=<%=var1%>&var2=<%=var2%>"></iframe> 您可以将它们作为查询字符串变量传递: <iframe src="page.asp?var1=<%=var1%>&

我有一个asp页面,在asp页面中有一个包含HTML页面的iframe。我需要的是将两个值从asp页面发送到内部HTML页面。这是怎么可能的。

您可以将它们作为查询字符串变量传递:

<iframe src="page.asp?var1=<%=var1%>&var2=<%=var2%>"></iframe>

您可以将它们作为查询字符串变量传递:

<iframe src="page.asp?var1=<%=var1%>&var2=<%=var2%>"></iframe>


&!您的变量不是实体名称。@Anil Kumar:如果是html页面,您将如何处理查询字符串变量?它不应该也是asp页面吗?@sAc..谢谢你的回复…是的,我知道,但我知道它是一个HTML模板(需要HTML),用于屏蔽动态新闻文章。所以一切都进行得很顺利,但我需要asp页面的文章id,以便使用javascript向前发送。@Anil Kumar:是的,只需将
src
中我的答案中的名称和扩展名替换为html,例如
src=“pageName.html?var1=&var2=”
,然后使用
Request.QueryString(“name”)
&!您的变量不是实体名称。@Anil Kumar:如果是html页面,您将如何处理查询字符串变量?它不应该也是asp页面吗?@sAc..谢谢你的回复…是的,我知道,但我知道它是一个HTML模板(需要HTML),用于屏蔽动态新闻文章。所以一切都进行得很顺利,但我需要asp页面的文章id,以便使用javascript向前发送。@Anil Kumar:是的,只需将
src
中我的答案中的名称和扩展名替换为html,例如
src=“pageName.html?var1=&var2=”
,然后使用
Request.QueryString(“name”)