asp.net ͼƬˮӡ
string mapho = request["imgpath"];//»ñȡij¸öÒ³Ãæ´«¹ýµÄͼƬÃû³Æ
string str1 = Server.MapPath(mapho);//ÒªÌí¼ÓˮӡµÄͼƬ
string str2 = Server.MapPath("WaterMark.jpg");//Ìí¼ÓµÄÄÚÈÝͼƬ
System.Drawing.Image bmp = System.Drawing.Image.fromFile(str1);
Graphics gs = Graphics.fromImage(bmp);
System.Drawing.Image bmp2 = System.Drawing.Image.fromFile(str2);
//Á½ÕÅͼƬºÏ²¢
gs.DrawImage(bmp2, bmp.Width-bmp2.Width, bmp.Height - bmp2.Height, bmp2.Width, bmp2.Height);
Response.ContentType = "image/jpeg";//Êä³öÀàÐÍ
bmp.Save(Response.OutputStream,ImageFormat.Jpeg);//±£´æ
Ó÷¨:
н¨Ò»¸öÒ³ÃæÔÚÒ³Ãæ¼ÓÔØÊ¼þÀïÌí¼ÓÒÔÉÏ´úÂë¡£
ÔÚÒªÓÃÕâ¸öͼƬµÄʱºò°ÑËüµÄͼƬURLµØÖ·µÈÓÚÕâ¸öÒ³Ãæ¾Í¿ÉÒÔÁË.
ÀýÈ磺<asp:image runat="server" ImageUrl="ÒÔÉÏÒ³ÃæµÄÃû³Æ.aspx?imgpath="+"ͼƬÃû³Æ"></asp:image>
Ïà¹ØÎĵµ£º
ASP.NET·ÖÒ³·½·¨µÄÁ˽â³Ì¶È
¡¾³öÏÖÆµÂÊ¡¿
¡ï¡ï¡ï¡ï¡î
¡¾½â´ð¡¿
ASP.NET·ÖÒ³µÄ³£Ó÷½·¨ÓÐÒÔϼ¸ÖÖ¡£
q ÆôÓò¿·ÖÊý¾Ý¿Ø¼þµÄÄÚÖ÷ÖÒ³¹¦ÄÜ£¬ÈçÉèÖÃGridView¿Ø¼þµÄ“AllowPaging”ÊôÐÔΪ“true”£¬ÀàËÆµÄÊý¾Ý¿Ø¼þ»¹ÓÐDetailsViewµÈ¡£
q ͨ¹ýSQL²éѯÓï¾ä£¬ÒÔÌáȡָ¶¨²¿·ÖµÄÊý¾ÝµÄ·½Ê½Íê³É·ÖÒ³µÄ¹¦ÄÜ¡£Ò ......
µ¼³öµ½excelµÄ·½·¨ÓжàÖÖ£¬±È½Ï³£¼ûµÄÊÇÖ±½Óµ¼³öµ½EXCEL,»¹ÓоÍÊÇÏȽ«Ò³ÃæµÄÊý¾Ýдµ½´ÅÅÌÎļþ£¬Ö®ºóÖ±½ÓÔÙ´ò¿ªÎļþ£¬ÁíÍ⻹ÓоÍ
ÊǽèÖúµÚÈý·½µÄ¿Ø¼þ¡£
ǰ¶Îʱ¼äдµÄµ¼³öÊý¾Ýµ½excelÔÚexcel2003ÖÐÕý³£¶øÔÚexcel2007ÖÐÊý¾ÝÂÒÂ룬½ñÌìÁ˽⵽ÔÀ´ÊÇResponse.ContentType = "application/ms-excel";µ¼Ö ......
Ò»¡¢×Ô¶¨Òå FCKeditor µÄ BasePathBasePath ¼´FCKeditorÔÚÍøÕ¾ÖеÄÏà¶Ô·¾¶£¬Ä¬ÈÏÖµÊÇ /fckeditor/£¬×îºÃÔÚWeb.config appSettingsÖÐ¶ÔÆä½øÐÐÅäÖãº
<add key="FCKeditor:BasePath" value="/FCKeditor_2.6.3/"/>
ÕâÑù×öÓÐÖî¶àÓŵ㣺
1.¿ª·¢»·¾³ÓëÉú²ú»·¾³²»Í¬£¬¿ª·¢»·¾³Ò»°ãÊÇhttp://localhost/xxx.com/ÕâÖÖÇé¿öÏ ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
/// <summary>
/// Data ......