Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_mobile thread: Please teach me how to code.


Message #1 by "koko pops" <unmask5@h...> on Mon, 12 Aug 2002 09:32:52 +0000
Im doing a mobile project using the MMIT(Microsoft Mobile Internet 
ToolKit).Im using an object list and had manage to display the data using 
the execute reader.But when selecting i met problem.

I had a Database(Access) with a table name "Roomkeynum" with 3 
colums(Roomkey,Status and Borrower).I want to do a selection(eg:when i click 
on the roomkey,it shows the status of the key and the name of the 
borrower(the status and the borrower can be update)).Okay here's the part i 
don't know how to code.When i select the roomkey,it will show me the status 
of the key and the name of the borrower but i am stuck in this state.I am 
using the Visual Basic as the programming language.In the inline code i type 
this:


1.<mobile:form id="Logged" runat="server">
2.
3.<mobile:ObjectList id="objlst" runat="server"   
4.TableFields="Roomkey;Status;Borrower" OnItemCommand="OnEditCommand">
5.   <Command Text="Edit Details" Name="EditCommand" />
6.</mobile:ObjectList>
7.
8.</mobile:form>
9.
10.<mobile:form id="Edit" runat="server">
11.Borrower:
12.<mobile:TextBox id="TB1" runat="server" MaxLength="40">
13."What should i type here"</mobile:TextBox>
14.
15.Status:
16.<mobile:TextBox id="TB2" runat="server" MaxLength="2">
17."What should i type here"</mobile:TextBox>
18.</mobile:form>

I had some question please tell me if you know,in line 5 i type in the 
command but when i run the program the text "Edits Details" didn't appear.

And in line 13 and 17, i don kno wat to type to show the status and 
Borrower.
What i saw in the reference book is something like this,it is in C#
<Mobile:textbox id="textbox1" runat="server" text='<%# 
objlst.selction["Status"]%>' />


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


  Return to Index