protected void btnupload_Click(object sender, EventArgs e)
{
if (Uploadurl.PostedFile != null)
{
HttpPostedFile file = Uploadurl.PostedFile;
int filelen = file.ContentLength;
byte[] by = new byte[filelen];
file.InputStream.Read(by, 0, filelen);
cmd = new SqlCommand("Insert into url_table (url)" + "values(@url)", con);
con.Open();
cmd.Parameters.Add("@url", SqlDbType.VarChar).Value = Uploadurl.FileName;
cmd.ExecuteNonQuery();
con.Close();
}