Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Web Part Property Access View modes: 
User avatar
Member
Member
rajeeganesh2k4-gmail - 3/28/2011 2:07:39 AM
   
Web Part Property Access
How to read multiple value in Webpart property Getvalue from listbox

User avatar
Member
Member
kentico_michal - 3/29/2011 5:07:50 AM
   
RE:Web Part Property Access
Hi,

In terms of a listbox control, values are separated by a vertical bar and are saved in a following format: value1|value2|value3|value4

So, if you want to get separated values, you need to split the variable using standard String.Split method:


string value = ValidationHelper.GetString(GetValue("Variable"), "");
string [] values = value.Split('|');


Best regards,
Michal Legen