如何动态地在.aspx页面上添加html页面.... [英] how to add html page on .aspx page dynamically ....
本文介绍了如何动态地在.aspx页面上添加html页面....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
可以有不同的方法来做到这一点。
参考
以编程方式将HTML页面内容添加到ASPX页面 [ ^ ]
动态 -add-html-in-a-div-tag [ ^ ]
你是什么意思加上html页?
如果您希望在按钮点击时重定向到html页面,那么只需使用Response.Redirect()
重定向到html页面。
如果你想动态地将html元素添加到aspx页面,请使用占位符
控制和设置动态生成的HTML标记的PlaceHolder.InnerHtml
属性
there r many story name name image button for story after click on that it will go to the appropriate page of that story page story page having html page and is selected from some folder and want to set on aspx page dynamically.... how can i do that....give me suggestion and code for that
解决方案
There can be different ways to do it.
Refer
Add HTML Page Contents to ASPX Page Programmatically[^]
dynamically-add-html-within-a-div-tag[^]
What do you mean by add html page?
If you wish to redirect to an html page on button click, then just useResponse.Redirect()
to redirect to the html page.
If you wish to dynamically add html elements to an aspx page, use aPlaceHolder
control and set the dynamically generated html markup to thePlaceHolder.InnerHtml
property.
这篇关于如何动态地在.aspx页面上添加html页面....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文