将网页导出到asp .net中的单词 [英] export web page contail to word in asp .net

查看:64
本文介绍了将网页导出到asp .net中的单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

正在创建包含以下内容的网页
唯一的标签控件是
从后端绑定.
现在该页面将转换为文档格式
单击按钮后.
按钮在页面上.

谁能指导我该怎么做?
谢谢
@ ChetanV @

hello guys,

am cretaing a web page contain
the only label control which is
binded from back end.
now that page converting into document format
after clicking on button.
button is on page.

can any one guide me how to do this?
thank you
@ChetanV@

推荐答案

我获得此代码
i get this code
Response.ContentType = "application/vnd.ms-word";
       Response.Buffer = true;
       Response.ContentType = "application/vnd.ms-word";
       Response.AddHeader ("content-disposition", "inline; filename = Document.docx");



但它也会同时控制按钮.
我应该怎么做才能隐藏按钮.



but it will take the button control also.
what should i do hide the button .


这篇关于将网页导出到asp .net中的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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