Description: Upload Images Using C#
System.Drawing.Image image = Clipboard.GetImage()
if (image != null)
{
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(image)
int i = DateTime.Now.Millisecond
string filename = "pic"+ i+ ".jpg"
string path = @"d:\stu\DemoTest09\DemoTest09\update_gif\"+ filename
bitmap.Save(path)
TextBox1.Text = path
img1.Src = @"./update_gif/"+ filename
Image1.ImageUrl = @"./update_gif/"+ filename
image2.Src = @"./update_gif/"+ filename
aid01.HRef = @"./update_gif/"+ filename
}
To Search:
File list (Check if you may need any files):
DemoTest09\App_Code\ClassDiagram.cd
..........\Default.aspx
..........\Default.aspx.cs
..........\Default2.aspx
..........\Default2.aspx.cs
..........\Default3.aspx
..........\Default5.aspx
..........\Default4.aspx
..........\Default4.aspx.cs
..........\js\jquery.cookie.js
..........\..\jquery.validate.js
..........\..\jquery.validate.min.js
..........\..\jquery.validate-vsdoc.js
..........\..\jquery-1.3.1.js
..........\..\jquery-1.4.1.js
..........\..\jquery-1.4.1.min.js
..........\..\jquery-1.4.1-vsdoc.js
..........\..\MicrosoftAjax.debug.js
..........\..\MicrosoftAjax.js
..........\..\MicrosoftMvcAjax.debug.js
..........\..\MicrosoftMvcAjax.js
..........\..\MicrosoftMvcValidation.debug.js
..........\..\MicrosoftMvcValidation.js
..........\Thumbs.db
..........\update_gif\xxx.gif
..........\..........\pic328.jpg
..........\web.config
..........\Default5.aspx.cs
..........\HTMLPage.htm
..........\CrystalReport.rpt
..........\vwd.webinfo
..........\Default3.aspx.cs
..........\Default6.aspx.cs
..........\Default6.aspx
..........\js\scripts
..........\App_Code
..........\App_Data
..........\js
..........\update_gif
DemoTest09