Last post Feb 14, 2008 02:27 AM by Guang-Ming Bian - MSFT
Feb 09, 2008 04:23 AM|hyder959|LINK
ASP.NET MobileForm: I have a function where i would like to add controls dynamically,i am having problem when i am adding a listcontrol / Command control to a form,List control has itemcommand property where i am assigning the name which i'll use it in my
Form1 page.when ever i click the listitem it should perform some action.how to pass item command name when i am adding the listcontrol.
More over,we have a decoration property "lst.Decoration=ListDecoration.Bulleted;" I want to have my custom property say instead of bullet i want to show my own image instead of bullet/number etc.can you plz help in writng the custom properties.
SqlDataReader DBReader = sStat.ExecReader(SQLString);
lst.DataSource = DBReader;
lst.DataTextField = "wapcat";
lst.DataValueField = "wapid";
Feb 14, 2008 02:27 AM|Guang-Ming Bian - MSFT|LINK
You should add the control in Form_Load event, it would fire event.
I have answered your question in your another post:
Guang-Ming Bian - MSFT