Click here to Skip to main content
15,908,111 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: help needed Pin
beniwtv4-Apr-06 23:01
beniwtv4-Apr-06 23:01 
GeneralRe: help needed Pin
nidheeshkayal5-Apr-06 18:18
nidheeshkayal5-Apr-06 18:18 
Question"This program excists. overwrite it?" - avert Pin
Imperial-X21-Mar-06 21:48
Imperial-X21-Mar-06 21:48 
AnswerRe: "This program excists. overwrite it?" - avert Pin
beniwtv4-Apr-06 23:05
beniwtv4-Apr-06 23:05 
QuestionHow to create on-screen keyboard on PocketPC Pin
trail20-Mar-06 0:55
trail20-Mar-06 0:55 
AnswerRe: How to create on-screen keyboard on PocketPC Pin
beniwtv4-Apr-06 22:52
beniwtv4-Apr-06 22:52 
Questionterminal service on pda Pin
contact ajo19-Mar-06 20:24
contact ajo19-Mar-06 20:24 
Questionobjectlist templates in Mobile Web Applications Pin
TheEagle19-Mar-06 18:18
TheEagle19-Mar-06 18:18 
Hi every one...

I am trying to build a web mobile application that contains an ObjectList.I have used a stored procedure called GetTelephones()to provide the DataSource of the ObjectList using the code:

public static SqlDataReader GetTelephones()
{
SqlConnection connection=new SqlConnection(ConnectionString);
SqlCommand command=new SqlCommand("SELECT UserName,Telephone FROM IdentityTable",connection);
try
{connection.Open();
return command.ExecuteReader(CommandBehavior.CloseConnection);
}
catch(Exception ex)
{
connection.Close();
throw ex;
}
}

and to bind the ObjectList to the DataSource:

objlCustomersT.DataSource=
FirstWebMob.MobileData.GetTelephones();

objlCustomersT.DataBind();

And the HTML of the ObjectList:

<mobile:ObjectList id="objlCustomersT" runat="server" AutoGenerateFields="False" CommandStyle-StyleReference="subcommand"
LabelStyle-StyleReference="title">
<DeviceSpecific>
<Choice Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ItemDetailsTemplate>
<mobile:Label id="lblName2" runat="server">
<!--<%#DataBinder.Eval(((MobileListItem)Container).DataItem,"UserName")%>-->
</mobile:Label>
<mobile:PhoneCall id=pcCustomer runat="server" PhoneNumber='<%#DataBinder.Eval(((MobileListItem)Container).DataItem,"Telephone")%>'>
</mobile:PhoneCall>
</ItemDetailsTemplate>
<ItemTemplate>
<mobile:Label id="lblName" runat="server"></mobile:Label>
</ItemTemplate>
<headerTemplate>
<mobile:Label id="lblTitle" runat="server" Font-Bold="True" Font-Size="Large">CustomerName</mobile:Label>
</headerTemplate>
</Choice>
</DeviceSpecific>
</mobile:ObjectList>

But when i run the application i get the error:

Must have one or more fields to databind. (Application may have autogenerated fields from an empty DataSource. To clear items, set DataSource to null.)

Before i use the templates I have run the application without templates and it worked successfully but i want to use the PhoneCall Control inside the columns of the ObjectList(in the ItemDetailsTemplate).

Please..Could any one help me to fix this error.

QuestionPhone cannot access mobile web app anymore...why??? Pin
lnong17-Mar-06 11:17
lnong17-Mar-06 11:17 
QuestionReading in data from GPS Pin
prashantkgupta16-Mar-06 8:59
prashantkgupta16-Mar-06 8:59 
QuestionMP3 player on Win CE Pin
houari_id15-Mar-06 12:08
houari_id15-Mar-06 12:08 
AnswerRe: MP3 player on Win CE Pin
sebapi21-Mar-06 6:40
sebapi21-Mar-06 6:40 
GeneralRe: MP3 player on Win CE Pin
houari_id21-Mar-06 17:04
houari_id21-Mar-06 17:04 
QuestionMake a program autostart and create a tray icon for access Pin
spAAwn13-Mar-06 22:51
spAAwn13-Mar-06 22:51 
QuestionHow to create a connection for .NET Mobile to my local SQL2000? Pin
drexler_kk13-Mar-06 20:33
drexler_kk13-Mar-06 20:33 
QuestionInformation on Rapi.dll Pin
analytiks13-Mar-06 17:45
analytiks13-Mar-06 17:45 
AnswerRe: Information on Rapi.dll Pin
Vasudevan Deepak Kumar13-Mar-06 18:33
Vasudevan Deepak Kumar13-Mar-06 18:33 
Questionmobile agent Pin
karthik.N.Rao11-Mar-06 8:03
karthik.N.Rao11-Mar-06 8:03 
AnswerRe: mobile agent Pin
plot1722-Mar-06 7:59
plot1722-Mar-06 7:59 
QuestionSQLCE & SQL SERVER 2000 data replication Pin
Measum10-Mar-06 21:35
Measum10-Mar-06 21:35 
Questionapplication feature lock and un-lock Pin
raybert10-Mar-06 6:09
raybert10-Mar-06 6:09 
QuestionDibSectionLite Pin
Eugene Ochakovsky9-Mar-06 6:39
Eugene Ochakovsky9-Mar-06 6:39 
QuestionPC/PPC sync Pin
Willem_Le_Roux8-Mar-06 22:13
Willem_Le_Roux8-Mar-06 22:13 
QuestionWindows Service -ish application for pocket PC:s. Howto? Pin
spAAwn8-Mar-06 10:14
spAAwn8-Mar-06 10:14 
AnswerRe: Windows Service -ish application for pocket PC:s. Howto? Pin
Eugene Ochakovsky8-Mar-06 10:34
Eugene Ochakovsky8-Mar-06 10:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.