Have put some code in that allows a site administrator to upload an image. I would like to modify the button click subroutine so that it will insert the <img src="...." /> code for the uploaded image at the point where the cursor is in a text box:
===========================================================
Sub Upload_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim strFileName As String
' Proceed only if a file has been specified
strFileName = System.IO.Path.GetFileName(UploadedFile.PostedFile.FileName)
UploadedFile.PostedFile.SaveAs(Server.MapPath("/Portal/images/" + strFileName)
End Sub
===========================================================
How's it done????
cheers,
si
===========================================================
Sub Upload_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim strFileName As String
' Proceed only if a file has been specified
strFileName = System.IO.Path.GetFileName(UploadedFile.PostedFile.FileName)
UploadedFile.PostedFile.SaveAs(Server.MapPath("/Portal/images/" + strFileName)
End Sub
===========================================================
How's it done????
cheers,
si