![]() ![]() string filePath = "~//FriendPhoto//" + ().GridViewRow gvrow = lnkbtn.NamingContainer as GridViewRow.LinkButton lnkbtn = sender as LinkButton.protected void btnView_Click( object sender, EventArgs e).SqlDataAdapter da = new SqlDataAdapter( "Select * From tblFileUpload" , con).SqlConnection con = new SqlConnection(constr).protected void Page_Load( object sender, EventArgs e).public partial class FriendList : .Page.When Web master or site administrator will view the image folder, here, we will only upload the image and View on new tab of the Browser and download the same.Ĭode To Display Image in Friend List page : FriendList.aspx While we are accepting the file from the user through the file upload, always feed extra information in the file name like: DateTime, UserID or Friend ID etc. ![]() We can restrict the extension of file to be uploaded. We can restrict the size of the file to be uploaded. We can receive/ allow the upload with the following points: We can upload and receive the file from the user with the help of FileUpload control. Download Button : Click this button and the image will download.View Button : Click this button and it will redirect you on ViewImage.aspx.There are two buttons, View and Download. This page will display the friends with the images. In this page, we will accept and insert a new friend with the image. In many scenarios, we have to develop, upload, and open the uploaded file in the Browser and download an uploaded file. How to open an uploaded file in the browser to read.How to upload a file with an example image file.In this article, you will come to know about the following things: ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |