来自ToolkitScriptManager的Javascript代码写在PDF文件上 [英] Javascript code from ToolkitScriptManager written on PDF file

查看:83
本文介绍了来自ToolkitScriptManager的Javascript代码写在PDF文件上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在Visual Studio Web Developer 2010上开发Web应用程序.我有一个带有Calendar Extender控件的页面和一个gridview,该页面列出了一些信息(取决于给定的日期范围).为了生成有关列表的报告",我使用ItextSharp库生成了一个PDF文件,并且效果很好,但是,它们将gridview的表写在PDF文件上,这在javascript上显示了一些代码:

//(function(){var fn = function(){$ get("ctl00_ToolkitScriptManager1_HiddenField").value =
'';; Sys.Application.remove_init(fn);}; Sys.Application.add_init(fn);})();//


我还有其他页面使用相同的功能来转换PDF文件,并且效果很好,唯一的区别是页面没有ajax控件,因此此代码来自ToolkitScriptManager.

我不知道为什么会出现这种行为.

我正在使用Ajax Control Toolkit 3.5-在2012年9月发行的版本中上传.

关于这个问题有什么想法吗?

感谢您的时间.

Hello

I''m developing a web application on Visual Studio Web Developer 2010. I have a page with Calendar Extender controls and a gridview that list some information depending from the date range given. To generate a "report" about the list I generate a PDF file using ItextSharp library and works very good, but, them that the table from gridview is written on PDF file appear some code on javascript:

//(function() {var fn = function() {$get("ctl00_ToolkitScriptManager1_HiddenField").value =
'''';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();//


I have other page using the same function to convert PDF''s files and works good, the only difference is that pages don''t have ajax controls, so this code comes from ToolkitScriptManager.

I don''t have idea about why presents this behavior.

I''m using Ajax Control Toolkit 3.5 - upload in September 2012 release.

Any idea about this problem?

Thanks for your time.

推荐答案

get("ctl00_ToolkitScriptManager1_HiddenField").value =
'';; Sys.Application.remove_init(fn);}; Sys.Application.add_init(fn);})();//

我还有其他页面使用相同的功能来转换PDF文件,并且效果很好,唯一的区别是页面没有ajax控件,因此此代码来自ToolkitScriptManager.

我不知道为什么会出现这种行为.

我正在使用Ajax Control Toolkit 3.5-在2012年9月发行的版本中上传.

关于这个问题有什么想法吗?

谢谢您的宝贵时间.
get("ctl00_ToolkitScriptManager1_HiddenField").value =
'''';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();//

I have other page using the same function to convert PDF''s files and works good, the only difference is that pages don''t have ajax controls, so this code comes from ToolkitScriptManager.

I don''t have idea about why presents this behavior.

I''m using Ajax Control Toolkit 3.5 - upload in September 2012 release.

Any idea about this problem?

Thanks for your time.


这篇关于来自ToolkitScriptManager的Javascript代码写在PDF文件上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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