I want that when i select image via FileUpload1 the image should be displayed without any upload button.My code is below:
protected void btnsubmit_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{
string str = FileUpload1.FileName;
FileUpload1.PostedFile.SaveAs(Server.MapPath(".") + "//Uploads//" + str);
string menuImage = "~//Uploads//" + str.ToString();
// Image1.ImageUrl = menuimage.ToString();
string encryptedpassword = Encryptdata(txtpassword.Text);
string encryptedconfirmpassword = Encryptdata(txtconfirmpassword.Text);
try
{
Databasebase.NewEmployee(txtname.Text, menuImage.ToString(),