Hi.
Q1
Would like to ask if anyone knows how to add ALL the records from a dataset into an arraylist? previously i had retrieved the records and store them inside a dataset. now i just want to know how to add them into an arraylist.
Q2
i would also like to know if anyone knows how to set the selectionlist of asp.net mobile application to a certain value. lets say u want it to display "abc" as a selectedvalue when u go to that page.
it works for asp.net webforms but it cant work in asp.net mobile forms. i kept getting "object not reference..." error.
FYI, for asp.net webforms i just use a single code like this:
dropdownlist1.selectedvalue = "abc"
but i dont know how to do it with mobile selectionlist(in ddl format too).
hope anyone here can answer both my questions, thanks in advance! =D
Q1
Would like to ask if anyone knows how to add ALL the records from a dataset into an arraylist? previously i had retrieved the records and store them inside a dataset. now i just want to know how to add them into an arraylist.
Q2
i would also like to know if anyone knows how to set the selectionlist of asp.net mobile application to a certain value. lets say u want it to display "abc" as a selectedvalue when u go to that page.
it works for asp.net webforms but it cant work in asp.net mobile forms. i kept getting "object not reference..." error.
FYI, for asp.net webforms i just use a single code like this:
dropdownlist1.selectedvalue = "abc"
but i dont know how to do it with mobile selectionlist(in ddl format too).
hope anyone here can answer both my questions, thanks in advance! =D