Javascript Onclick To Select Item With Asp.net Listview Control
I'm trying to implement a onclick event to select an item in a asp:ListViewControl.
publicclassListViewEvent : ListView, IPostBackEventHandler
{
publicvoidRaisePostBackEvent(string eventArgument)
{
if (!eventArgument.Contains("$"))
return;
string[] splitEventArgument = eventArgument.Split('$');
switch (splitEventArgument[0])
{
case"Select":
{
SelectItem(Convert.ToInt32(splitEventArgument[1]));
break;
}
default:
{
break;
}
}
}
}
Post a Comment for "Javascript Onclick To Select Item With Asp.net Listview Control"