Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Javascript code from ToolkitScriptManager written on PDF file

$
0
0

Hi!

I'm developing a dinamic web site on Visual Studio Web Developer 2010. I have a page with two 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("ContentPlaceHolder4_smMain_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 - April 2010 release.

Thanks in advance for any suggest :)


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>