all groups > asp.net mobile > october 2005 >
You're in the

asp.net mobile

group:

Mobile List ItemsAsLinks


Mobile List ItemsAsLinks rwoo_98 NO[at]SPAM yahoo.com
10/3/2005 10:57:27 AM
asp.net mobile:
I have the following on a mobilepage:

SectionList
Command
List

The SectionList SelectType is a DropDown.
Both the SectionList and List are dynamically generated.
List also has an OnItemDataBind event, which adds additional text to
the List.
The List.ItemsAsLinks is set to false.

When the page comes up the items in the List are displayed as links and
contain a postback. I don't want the Items displayed as links. Any
ideas?

Thanks,
Re: Mobile List ItemsAsLinks rwoo_98 NO[at]SPAM yahoo.com
10/3/2005 11:07:36 AM
Found the problem. If you double click the List object in the design
window, a ListCommandEventHandler is automatically created. Once this
happens, the items in the List are created with a postback.

Hope someone finds this useful.
AddThis Social Bookmark Button