Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-07-06
2
Medium Priority
?
558 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
2 Comments
 
LVL 21

Accepted Solution

by:
alainbryden earned 1500 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

Technology Partners: 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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

916 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