ASP.NET Image¿Ø¼þÎÊÌâ - .NET¼¼Êõ / ASP.NET
ÎÒÏÖÔÚÓиöÐèÇóÊÇÔÚ·þÎñÆ÷ÉÏСͼƴÕÅ´óͼȻºó¸øÓû§ä¯ÀÀÏÂÕâÕÅ´óͼ
ÔÚ·þÎñÆ÷ÉϵÄImageURLÊDz»±äµÄͼƬÄÚÈÝÊǸıäµÄ
ÎÊÌâÊÇÕâÑùµÄͼƬµÄÄÚÈݸıäÁË¿ÉÊÇÏÔʾÔÚÒ³ÃæÉϵÄͼƬÄÚÈÝÈ´ÊÇ֮ǰµÄÄÇÕÅͼƬÄÚÈÝ
´úÂ룺
protected void Page_Load(object sender, EventArgs e)
{
//if (Session["stuPracAppPicCount"] == null || Session["stuPracAppPicCount"].ToString() == "0")
//{
// Response.Write(@"<script>alert('ÉÐδÉÏ´«µ¥ÕÅͼƬÎÞ·¨Ô¤ÀÀ,ÇëÏÈÉÏ´«Í¼Æ¬')</script>");
// Response.Write(@"<script>window.location='../Default2.aspx'</script>");
//}
//else
//{
//°à¼¶ID
string clsId = Request.QueryString["stuClsId"].ToString();
//ѧºÅ
string stuNum = Request.QueryString["stuNum"].ToString();
//¹«Ë¾ID
string compId = Request.QueryString["compId"].ToString();
string grade = stuBLL.GetClassGrade(clsId);
try
{
if (File.Exists(Server.MapPath("../PracStuAppPic/" + grade + "/" + stuNum + "_" + compId + ".jpg")))
{
File.Delete(Server.MapPath(&q
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌâ¶¼¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......
¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£
ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......
sqlserverµÄÊý¾Ý¿â£¬×Ö¶ÎÊÇimageÀàÐ͵ġ£Ôõôд´úÂ룬ÔÚÒ³ÃæÖеã»÷¡°ÏÂÔØ¡±¾ÍÄÜ´ò¿ªÄǸöÏÂÔØ¶Ô»°¿ò£¿
PS£ºOracleLob ÔÚsqlserverÀïÊÇʲô£¿
Response.Redirect("test.jpg")
ÒýÓÃ
Response.Redirect( ......