Sending Attachments Directly From a FileUpload Control
Published 17 years ago
With previous versions of ASP.NET you couldn't attach an uploaded file directly to a mail message. Instead, you needed to save the file to disk, attach it to the mail message and then when sending the message succeeded you had to clean up the old file again.
This not only meant a lot of work, it also had some security implications. Because the file needed to be written to disk, the account used by the web server required write permissions to a folder to store the attachments.
Now, with the new constructors for the Attachment class from the System.Net.Mail namespace, these problems are gone....
Read on ...Send Out XHTML to Browsers That Support It
Published 18 years ago
A while ago I saw this useful tip to instruct an ASP.NET 2.0 application to send the response as valid XHTML / XML.
Read on ...Binding ObjectDataSource controls to Custom Methods
Published 19 years ago
The new ASP.NET 2 data controls, like the SqlDataSource and the AccessDataSource grealty simplify data access in your Web Applications. However, they have one major drawback: they flood your pages with Sql statements. Not so with the ObjectDataSource, that enables you to bind to the results of a standard method in your Business Logic Layer. The ObjectDataSource can in turn be bound to a data aware control, like the new GridView or DetailsView controls
Read on ...- «First
- ‹Previous
- 1
- ›Next
- »Last
Mobile: False
Crawler: True
I: False