Interesting article on exporting a GridView to PDF:
http://csharpdotnetfreak.blogspot.com/2008/12/export-gridview-to-pdf-using-itextsharp.html
Uses open-source project iTextSharp
This blog is a record of some development issues I have faced. There may be something of use!
Interesting article on exporting a GridView to PDF:
http://csharpdotnetfreak.blogspot.com/2008/12/export-gridview-to-pdf-using-itextsharp.html
Uses open-source project iTextSharp
Quick note on how to encrypt the Connection string in the web.config for future reference
Encrypt the Connection string :
aspnet_regiis -pef "ConnectionString" "c:\path\to\website"
Grant Access to IIS to the key
aspnet_regiis -pa "NetFrameworkConfigurationKey" "NT Authority\Network Service"
note aspnet_regiis is in the .net framework directory for the version of .net that you are using
Had a few occasions where a Partial mock was calling the real method even though an expectation had been defined.
The reason was that the method being called was not marked as Virtual and so not being overridden by the mock repository.
See article here to encrypt or decrypt section of web.config file.
XML Method comments are not being displayed by intellisense for methods of classes other than those in the same project.
Any referenced DLL must have the XML file which contains the comments in the same directory as the DLL itself.
Very interesting article here: CodeProject:AspNetService detailing how to simulate a windows service running completely within Aps.Net using cache item call backs.
If the PC does not have the .NET SDK installed then the configuration tool will not be available via Control Panel -> Admin. Tools. Instead a command line tool CasPol.exe must be used:
The command line tool exists in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
The command for setting Intranet as full trust is:
CasPol.exe -q -m -ag All_Code -zone Intranet FullTrust