Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2004, 08:59 PM
shs shs is offline
Authorized User
 
Join Date: Mar 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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


 
Old August 31st, 2004, 05:34 PM
shs shs is offline
Authorized User
 
Join Date: Mar 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just in case, I sorted this out.

I have missed the " " around the parameter.

the syntax is: server.mappath("parameter")





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert .bmp to .jpg DearNeel Beginning VB 6 3 October 17th, 2014 07:17 AM
textureing by a bmp file. jopeter C# 0 December 23rd, 2007 07:08 PM
Create bmp vb6 wehave74 Pro VB 6 2 January 24th, 2007 11:42 AM
Converting a bmp to a tiff image E-Cube VB.NET 0 July 5th, 2005 04:13 PM
Exception while running BMP ramko J2EE 0 August 5th, 2003 05:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.