Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.mobile
Barcode scanning on mobile WebForm - Setfocus issue on Textbox
DotNetJunkies User
7/6/2004 1:38:00 PM
Hi,
Does anybody have a small sample solution for setting on page load the focus in a textbox on a mobile webform ?
This is required in order to be able to use a barcode scanner, who will enter data in this field ( ending with a tab or enter)
As soon as the data is entered this way, how can i raise a postback, so I get the server back to the server ?
Remark :
As the textbox on a mobile webform has no setfocus method the below code is mentioned as solution for setting the focus on a textbox on a mobile webfrom on several forums. BUT..
I dont get it working, because nowbody states the correct
<deviceFilters> setting in the web.config...
Please help !
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="isHTML32"
Xmlns="
http://schemas.microsoft.com/mobile/html32template&...
<FooterTemplate>
<script for="window" event="onload" language="javascript">
<!--
window.document.Form1.txtFileNumber.focus();
// -->
</script>
</FooterTemplate>
</Choice>
</mobile:DeviceSpecific>
---
Posted using Wimdows.net NntpNews Component - Post Made from
http://www.DotNetJunkies.com/...
Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Barcode scanning on mobile WebForm - Setfocus issue on Textbox
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password