Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus to textbox control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Développement mobile
Divers
Thread ID:
00821258
Message ID:
00821945
Vues:
27
Paul,

The problem here is that many mobile devices don't support Javascript so the code is ignored. I haven't seen a solution that will allow the selection of a control on devices that don't support Javascript.

>>Paul,
>>
>>Thanks for the reply.
>>I have tried your suggestion.
>>There is no change.
>>
>>Let me know if you have another solution.
>>
>>Thanks,
>>Alvin
>
>Manually add the script to the ASPX (HTML portion) of the page to eliminate this as a potential problem. You will also need to the onload stuff I mentioned before.
>
>
><head>
>  < script language="JavaScript">
>  function SetFocus()
>  {
>     document.MobileWebForm1.txtBarCodeReader.focus();
>  }
>  </script>
></head>
>
>
>Also, make absolutely sure that the form name matches the above code. I think in ASP.NET it defaults to Form1 (take a look at the HTML source for the tag: <form name= for the actual name used. This is case sensitive! I'm guessing the object reference you're using isn't correct.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform