如何动态地在.aspx页面上添加html页面.... [英] how to add html page on .aspx page dynamically ....

查看:130
本文介绍了如何动态地在.aspx页面上添加html页面....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

点击之后的故事的故事名称图像按钮有许多html页面的那个故事页面故事页面的相应页面,从某个文件夹选择,想动态地在aspx页面上设置...我怎么能这样做....给我建议和代码

解决方案

可以有不同的方法来做到这一点。



参考



以编程方式将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 use Response.Redirect() to redirect to the html page.


If you wish to dynamically add html elements to an aspx page, use a PlaceHolder control and set the dynamically generated html markup to the PlaceHolder.InnerHtml property.


这篇关于如何动态地在.aspx页面上添加html页面....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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