易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net为图片添加文字水印

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
   上传图片:<asp:FileUpload ID="uploadImage" runat="server" />
<br />
 生成图片宽度:<asp:TextBox ID="TextBox1" runat="server">500</asp:TextBox>
<br />
 生成图片高度:<asp:TextBox ID="TextBox2" runat="server">500</asp:TextBox>
<br />
每行显示字符数:<asp:TextBox ID="TextBox4" runat="server">20</asp:TextBox>
<br />
  水印文字:<asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine">在人生的道路上,如果你没有耐心去等待成功的到来,那么你只好用一生的时间去等待失败!</asp:TextBox>
<br />
   <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="提交" />
<br />
</div>
</form>
</body>
</html>

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
HttpPostedFile hpf = uploadImage.PostedFile;
//取得文件名,不含路径
char[] splitChar = { '\\' };
string[] FilenameArray = hpf.FileName.Split(


相关文档:

ASP.NET【DataGridView】72计

DataGridView 72计
本文将介绍ASP.NET中DataGridView的用法,DataGridView在Asp.net中是常用的控件之一,掌握好DataGridView的特点和用法。将对程序的性能有大大的提高,同时也能加快我们项目的开发周期!
快速预览:
GridView无代码分页排序
GridView选中,编辑,取消,删除
GridView正反双向排序
GridView和下拉菜单 ......

asp.net清除html标记

#region 清除文本样式  主要应用于从网络粘贴进来的文本
        [WebMethod]
        public static string ClearStyle(string yourStr)//清除样式
        {
      & ......

ASP.NET 页面事件执行顺序 收藏

ASP.NET 页面事件执行顺序 收藏
过程描述
下面是ASP.NET页面初始的过程:
1. Page_Init();
2. Load ViewState;
3. Load Postback data;
4. Page_Load();
5. Handle control events;
6. Page_PreRender();
7. Page_Render();
8. Unload event;
9. Dispose method called;
下面对其中的一些过程作下描述:
1. Pa ......

asp.net网页播放器

之前要完成一个支持多支持多种格式的视频播放器,在网上找到一个VB写的,然后改成C#,近段在网上也见有不少人问这个问,在此分享
public class VideoPlayer
    {
        /// <summary>
        /// 生成视频播放器的HTM ......

asp.net的一个dbhelper类

using System;
using System.Collections;
using System.Collections.Specialized;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
namespace Maticsoft.DBUtility
{
     /// <summary>
  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号