Solved

How to set Focus to a Control in ASP.NET using Windows Mobile

Posted on 2009-07-06
2
552 Views
Last Modified: 2013-11-07
Hello Experts,

I have an ASP.NET using VB page which i Will be viewing from a Windows Mobile internet explorer.

I want to set the focus to a control through the event of another.

This works fine from the browser of a PC but doesn't work from a Mobile browser.

Any ideas how I can make this work ???

Thanks in advance,

Pythonv.
0
Comment
Question by:pythonV
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
alainbryden earned 500 total points
ID: 24795058
Mobile web applications require that you use Javascript to give a control focus using document.getElementById("").focus(). Do you have a straightforward way to do this in your enfironment?

--
Alain
0
 

Author Comment

by:pythonV
ID: 24800960
hello, Thanks for the response.

I have a way of editing the javascript as im using Visual Studio 05.

I found another solution however as shown here:

http://msdn.microsoft.com/en-us/library/aa479011.aspx

I changed the body tag to server side control. this enabled me to change the focus through the events, just what I needed.

Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# MVC Insert Multiple Row into DB 2 62
Dictionary and array of [N] size - performance tuned 12 40
asp.net web app 3 20
asp.net repeater 2 5
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question