ErrorMessage="invalid name" ControlToValidate="txtLName" Display="None" ValidationExpression="^([ \u00c0-\u01ffa-zA-Z'])+$"> ItemCollection i = new ItemCollection();
i.LoadAll();
this.ddlItemType.DataSource = i;
this.ddlItemType.DataTextField = ItemMetadata.PropertyNames.Description;
this.ddlItemType.DataValueField = ItemMetadata.PropertyNames.ItemTypeID;
this.ddlItemType.DataBind();
if you add this after the databind it will add a list item at index zero (pre-selected)
ListItem li = new ListItem("select one ", "");
this.ddlItemType.Items.Insert(0,li); private int[] commaStrToArray(string strIntComma)
{
string [] strArray;
strArray = strIntComma.Split(new char[] {','});
int [] intArray = new int [strArray.Length];
for (int i = 0; i < strArray.Length; i++)
intArray[i] = int.Parse(strArray[i]);
return intArray;
}
This will NOT work as when you deploy your site, it would depend on the directory structure.
Another problem is you also can NOT do the following:
' />
because Master Page won't allow any server-side tags.
The ultimate solution to this I found, is, as follows: The new Nyko Stereo Link for iPod ... Normally using the iPod dock connection is the only way to get good quality sound from the iPod into a stereo. This is the only adaptor I found that uses this port instead of the headphone jack. Can be found real check at: