Hello, I am peggie. Currently, I am using asp.net visual c#. I have a zip file web gallery that I had download from this site. But, the problem is the upload button is in visual basic code while I need one is visual c # code. Can u guys help me to convert to visual c# code? Thanks in advance:)
Imports
Partial
strGuid = fnGuid()
strPicExtension = fnGetPictureExtension(PhotoUpload.FileName)
strFileName = strGuid & strPicExtension
subAddNewPicture(PhotoUpload, strFileName,
UpdateGallery(cmbCategory.SelectedValue, strFileName, txtMemo.Text.Trim())
lblUploadMessage.Text =
lblUploadMessage.Visible =
#
sqlQuery_Photo = sqlQuery_Photo.Replace(
sqlConn.Open()
sqlcmd.Connection = sqlConn
sqlcmd.CommandText = sqlQuery_Photo
sqlcmd.ExecuteNonQuery()
sqlConn.Close()
strImageFolderPath = Path.Combine(Request.PhysicalApplicationPath, strImgFolder)
strImagePath = Path.Combine(strImageFolderPath, strPictureName)
FileUploader.SaveAs(strImagePath)
strGuid = .Year & .Month & .Day & Now.Hour & Now.Minute & Now.Second
End