文章收集

Add a JavaScript popup to an ASP.NET button
How to add a javascript popup (alert) question to an ASP.NET button control..

Dynamic thumbnail images from ASP.NET
This sample code is an IHttpHandler implementation that reads a JPG from the filesystem and dynamically generates a thumbnail sized version of the image and emits that to the response stream. What I like about this approach is that you don't need to create a file on the filesystem for the thumbnail as it's all done in memory..

Creating a dynamic graphic which returns a .jpg
This code allows an .aspx file to receive parameters (file name and width of picture) and return a JPEG resized to the requested width..

ASP.NET程序中实现校验码图像生成
我们经常遇到不少电子邮件、论坛的注册过程需要我们输入校验码

为数据访问层编写一个基类

ASP.NET封装的数据库访问

用ASP.NET开发三层结构应用程序

How to read BLOBs and display them
Reading BLOBs (images) from a database and displaying them in an ASP.NET application.

Sending email from ASP.NET
One of the most commonly performed operations that I see in web applications - aside from database actions - is sending email from code. This demonstrates how in ASP.NET..

Sending Authenticated Emails in .NET 2.0
Learn what's changed with .NET 2.0 and how to send out emails using an SMTP server that requires authentication..

Resizing images retrieved from SQL server
A neat way of fetching an image stored in SQL Server and resizing it before save/sending it anywhere..

Debug ASP.NET pages using Tracing
Demonstrates a useful debugging technique taking advantage of traces in ASP.NET..

Embed text in Image using ASP.NET
Demonstrates how to dynamically embed a text caption embedded into an image..

CodeSnip: Validate Image Size, Dimension, and Type Uploads

 

Uploading Files Using ASP.NET
No need of third party components to upload your files. It is so easy to upload files in ASP.NET using just 3 lines of code. .

Url Rewriting with Regex for ASP.NET 2.0
A new feature in ASP.NET 2.0 is it's built-in url rewriting support. When i looked into this new feature I found that it lacked regular expressions support, which is really the point of an Url Mapper. So, this code demonstrates how to create a Url Rewriting Module with Regex support in ASP.NET..

Transactions made easy with .NET 2.0
One of the more significant improvement in .NET 2.0 is the transactions area. Now with a single line it becomes extremely easy to support transactional code blocks using the concept of “ambient” transaction thanks to TransactionScope in the System.Transactions namespace..

Encrypting Web.config sections in ASP.NET 2.0
Learn how to encrypt any section of your Web.config file on-the-fly and programatically; plain-text connection strings in your config file are no more!.

Binding a Control to an Enum
Ever had an Enum (with a set of names and values) that you wanted to bind to a control like a DropDownList? Here's how..

A Simple ASP.NET MessageBox Class
When moving from Windows Forms to ASP.NET Web Forms, an API that may be missed is that offered by the System.Windows.Forms.MessageBox Class. Here we implement it for ASP.NET!.

Cross page postbacks in ASP.NET 2.0
ASP.NET 2.0 introduces the ability to have an ASPX page postback to a different ASPX page with cross page postbacks. This was done all the time in ASP but wasn’t supported in ASP.NET 1.x. Here we show you how to use this new feature..

Programatically Load User Controls
How to programatically load user-controls from code behind pages and then access their properties using reflection..

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值