|
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.
|
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 3/22/2010 Posts: 4
|
Thank You, after Your suggestion now it works fine!
|
|
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.
|
|