make the database. take 2 columns name image and imgid.
like this
now in designing window..
take 1 textbox,2 buttons,1fileupload ,and 1 image control...
add namespace"using System.Data.SqlClient;"
and make the connection in the class
"SqlConnection con = new SqlConnection("server=VAIBHAV;database=image;uid=sa;password=000");"
in the insert button write code..
in the search button write code...
by insert button u can save the image into database
by search button u can retrieve the image by database.
No comments :
Post a Comment