ASP.NET上傳圖檔自動修改成固定大小
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim filename As String = Session("name").ToString & ".jpg"
If FileUpload1.HasFile Then '檢查是否有檔案
Dim fileallow As Boolean = False '是否允許上載