.NET news » Search results
Search results for query "ajax file" (91):
The UpdateProgress Control of ASP.net Ajax Extension
ASP.Net/AJAX interface for utorrent
Introduction to Anthem.NET
File Download in ASP.Net and Tracking the status of success/failure of Download
Easy-to-use resumable .NET file downloader
Encrypting Configuration Information in ASP.NET 2.0 Applications
When creating ASP.NET 2.0 applications, developers commonly store sensitive configuration information in the Web.config
file. The cannonical example is database connection strings, but other sensitive information included in the Web.config
file can include SMTP server connection information and user credentials, among others. While ASP.NET is configured, by default,
to reject all HTTP requests to resources with the .config extension, the sensitive information in Web.config
can be compromised if a hacker obtains access to your web server's file system. For example, perhaps you forgot to disallow
anonymous FTP access to your website, thereby allowing a hacker to simply FTP in and download your Web.config file.
Eep.
Fortunately ASP.NET 2.0 helps mitigate this problem by allowing selective portions of the Web.config file to be
encrypted, such as the section, or some custom config section used by your application.
Configuration sections can be easily encrypted using code or aspnet_regiis.exe, a command-line program. Once
encrypted, the Web.config settings are safe from prying eyes. Furthermore, when retrieving encrypted congifuration
settings programmatically in your ASP.NET pages, ASP.NET will automatically decrypt the encrypted sections its reading. In short,
once the configuration information in encrypted, you don't need to write any further code or take any further action to use
that encrypted data in your application.
In this article we'll see how to programmatically encrypt and decrypt portions of the configuration settings and look at
using the aspnet_regiis.exe command-line program. We'll then evaluate the encryption options ASP.NET 2.0 offers.
There's also a short discussion on how to encrypt configuration information in ASP.NET version 1.x.
Bitonal (TIFF) Image Converter for .NET
Developing and Unit Testing an ASP.NET MVC 2 Application
Context-Sensitive Feedback with AJAX
When users of any computer application start a potentially lengthy operation, best practices dictate that the user interface should be updated to indicate that work is in progress and that results may not be available for a while. This is easy to accomplish in a desktop application, but it can be rather difficult in a Web scenario. In Web applications, displaying text such as "Please wait" just before an operation begins is easy, but if you want to provide some useful feedback, such as the estimated time to completion or the percentage of work finished, it’s a bit more difficult to accomplish. This is because most lengthy tasks in Web apps execute on the server, and there are no built-in mechanisms for pushing state information to the client.
In this month’s column, I build a server and client ASP.NET AJAX infrastructure to start and control a potentially lengthy server-side task.


Syndicate