『DotNet吧』

『DotNet』

导航

2007年7月12日

摘要: System.Drawing.Imageimg=System.Drawing.Image.FromFile(photoPath);intwidth=Convert.ToInt32(img.Width);intheight=Convert.ToInt32(img.Height);if(width>400){this.Image1.Width=400;}this.Image1.ImageUrl=... 阅读全文

posted @ 2007-07-12 01:53 鱿鱼 阅读(235) 评论(0) 推荐(0)

摘要: 因为没有CS事件可以用,所以结合html一行代码搞定:this.FileUpload1.Attributes.Add("onchange","document.getElementById('"+this.Image1.ClientID+"').src=document.getElementById('"+this.FileUpload1.ClientID+"').value"); 阅读全文

posted @ 2007-07-12 01:41 鱿鱼 阅读(431) 评论(2) 推荐(0)