Welcome Guest Search | Active Topics | Sign In | Register

TreeView : Line Images Options
Luigi
Posted: Monday, March 22, 2010 4:45:08 PM
Rank: Newbie
Groups: Member

Joined: 3/22/2010
Posts: 4
In TreeView using :
<LineImages PlusMinusOnly="True"
ImageUrls="~/Resources/MenuArrDx.gif,~/Resources/MenuArrDx.gif,~/Resources/MenuArrNO.gif" />
I get the following Server Error :
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your
source file appropriately.
Parser Error Message: Cannot create an object of type 'System.String[]' from its string representation
'~/Resources/MenuArrDx.gif,~/Resources/MenuArrDx.gif,~/Resources/MenuArrNO.gif' for the 'ImageUrls' property.

eo_support
Posted: Monday, March 22, 2010 4:55:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please check your application's trust level. You won't be able to define it in your .aspx if your trust level is Medium. If you can not change your application's trust level (trust level is often set by your hosting company), you can set the line images in code, it will be something like this:

Code: C#
TreeView1.LineImages.ImageUrls = new string[]{
      "~/Resources/MenuArrDx.gif",
      "~/Resources/MenuArrDx.gif",
      "~/Resources/MenuArrNO.gif"
  };


Thanks!
Luigi
Posted: Tuesday, March 23, 2010 4:48:18 AM
Rank: Newbie
Groups: Member

Joined: 3/22/2010
Posts: 4
Thank You, after Your suggestion now it works fine!
eo_support
Posted: Tuesday, March 23, 2010 7:40:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Please feel free to let us know if you have any other questions.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.