Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem setting path of ImageLocation (ShapeListBox) (Read 1325 times)
saad
Full Member
***
Offline


I Love MindFusion!

Posts: 117
Joined: Oct 8th, 2012
Problem setting path of ImageLocation (ShapeListBox)
Oct 23rd, 2012 at 8:06pm
Print Post  
First of all my purpose is to put the thumbnail file that is shown inside shapeListBox in a directory called /Shapes.

I'm trying to set the ImageLocation to a folder inside my applications root directory.

Like this:

Code
Select All
// setting location of thumbnails in shapeListBox
            shapeList.ImageLocation = Server.MapPath("Shapes/"); 



But I get an error:

'C:/(blah..blah)...Flowcharter/Shapes/' is a physical path, but a virtual path was expected.
  
Back to top
 
IP Logged
 
saad
Full Member
***
Offline


I Love MindFusion!

Posts: 117
Joined: Oct 8th, 2012
Re: Problem setting path of ImageLocation (ShapeListBox)
Reply #1 - Oct 23rd, 2012 at 8:10pm
Print Post  
Solved. There was no need to use Server.MapPath.

Code
Select All
// setting location of thumbnails in shapeListBox
            shapeList.ImageLocation = "Shapes"; 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint