如何将带有css输出的Aspx处理页面输出转换为Html页面? [英] How Do I Convert Aspx Processed Page Output To Html Page with css output ?

查看:96
本文介绍了如何将带有css输出的Aspx处理页面输出转换为Html页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii,



我使用wkhtmltopdf将aspx页面转换为pdf文件,一切正常,但现在我想为我的页面设置标题,这又是aspx页面,在他的代码隐藏中编码以绑定数据。



现在问题是当我使用wkhtmltopd命令时,我想把aspx页面设置为标题我的文档,,,问题是它花了这么多时间来创建该文件,并且每次在此过程中我的页眉页面都会被调用..



所以现在是什么我我想是否有任何方法可以根据我的标题aspx输出创建html页面,因此只会创建一个副本,我会将其设置为我各自文档的标题。

解决方案





您可以使用Jquery加载方法



示例



 <   html  &g t;  
< head >
< script src = http:/ /ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"> < / script >
< script >


(文件)。就绪(函数(){

( 链接)。单击(函数(){

Hii ,

I am using wkhtmltopdf to convert aspx page to pdf files , all is working fine ,, but now i want to set header for my pages , which is again aspx page with coding in his codebehind to bind data.

Now the problem is when i use wkhtmltopd commands which allwaos me to set aspx page as a header for my document ,,, the problem is its taking so much time to create that file , and everytime during the process my header page gets called ..

So now what i am thinking is if there is any way to create html page based on my header aspx output, so only one copy will get created and i will set that as my header for my respective document.

解决方案

Hi,

You can use Jquery Load Method

Example

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>


(document).ready(function(){


("button").click(function(){


这篇关于如何将带有css输出的Aspx处理页面输出转换为Html页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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