BMP Iamges
Hi,
I am trying to pass an image name to server.mappath but I get error message.
here is the code:
sub pageload...
currentImgName.Text = "./images/" & currentImgName.Text & ".jpeg"
...
End Sub
Sub imageclicked()
...
Dim IMGNAME as String = currentImgName.Text
Dim bmap1 as new System.Drawing.Bitmap(server.mappath(IMGNAME))
....
End Sub
The error message:
System.ArgumentException: Invalid parameter used.
Any help?
Thanks
|