.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Backbutton on mobile device

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :ASP.Net

I have a mobile web application published at www.tofilmfest.ca/tiffwidget.  It has one form where you input criteria for what you're looking fork, and another one that displays the results.  The results form displays two backbuttons for returning to the input page and they work fine.

The problem is when you return to the input page using the HARDWARE backbutton on your mobile device.  When you do this, the input page reappears, but is no longer functional -- you have to refresh it to get it working again.  The functional software backbuttons use redirection to return to the input page.  Can anybody think of a workaround that will enable the input page to remain responsive irregardless of how you return to it?

View Complete Post

More Related Resource Links

How to create a windows mobile (Smart Device) .Cab installer

A Cab file is the default setup format for Windows CE and Windows Mobile devices (similar to windows .msi files). You probably already have installed several application using .cab files, and are familiar with the concept. One point which is often unknown is that .cab files are processed by wceloader.exe, and it can only install one .cab file at a time. That means we cannot have nested .cab files. It doesn't mean we cannot have .cab files contained by another .cab, but the contained .cab files will not be installed during the installation of the container .cab. We should install it manually after the container .cab file installation has been completed.

There are two ways to create a cabinet (.Cab) file. The traditional one, and the friendly VS Smart Device Cab project which doesn't require additional coding, but which also relies on the traditional one at low-level.

How to transfer files between computer and mobile device using bluetooth

What is Bluetooth? How can I have it on my computer?

Bluetooth wireless technology is a communication technology that allows two devices to communicate wirelessly. Most of the notebooks are nowadays equipped with bluetooth. For those notebooks or computers that don't, you can use a bluetooth dongle to add the functionality and it just costs you around $5. Although higher price range bluetooth dongles are available but it makes no sense of buying them if you just plan to connect your mobile device to the computer. Look for one that has Bluetooth v2.0 + EDR (Enhance Data Rate) supporting speeds of upto 3Mbps and with Vista support. You can easily have one of that kind in just $5.

Setting up bluetooth to work on your computer

Just Insert the bluetooth dongle in the USB.
It should get detected by your Operating System and should be ready to use. In case it is just detected as a new hardware, you need to install drivers for it that came with your bluetooth dongle (You can try Google to find the drivers).
Once drivers are installed, a bluetooth notification icon will appear in your system tray.
Right Click on it to access Settings (This may vary with your bluetooth dongle).
Make sure you have turned Discovery On (It allow others to see your computer).
Switch On the bluetooth on the mobile device.

Runtime development for All mobile device



   I am planning to implement a runtime or Environment . which allow any Mobile application to run on top of IT.

  Please give me couple of links or materials to help me out.

Thanks in advance.


Device detection: standard & mobile web applications


I would like to host standard web pages as well as mobile web pages on a single website/virtual directory.


Is there a simple way of sniffing out the machine type and then presenting either web or mobile application depending on the device?

Or is there a better solution other than creating separate website?

Many thanks

Create web site specific to mobile device, how to detect?



I have a website that is written in .Net 2.0 which uses all the nice rich functionality of the web (Ajax, javascript etc..).  However I have noticed that the site does not display very well on mobile devices. 

So therefore I would like to create a more streamlined version of my site that is better tailored to these devices.  However how do detect that the user has come to the site via a mobile device and how can i redirect them to my tailored page

Many thanks in advance

Obtain mobile device screen size



I am trying to get the screenHeight and width:


 // Get MobileCapabilities from current Request.Browser
        MobileCapabilities currentCapabilities = (MobileCapabilities)Request.Browser;
        // get a property of the  browser 
        Response.Write(currentCapabilities.ScreenPixelsHeight +  " <br>");
        Response.Write(currentCapabilities.ScreenPixelsWidth  + " <br>");


 but this is always show that the Height is 480 & the width is 640

I am trying on HTC with Opera Mobile 9.5

Any Advice?

Going Places: Mobile Device Provisioning With SyncML


OMA Device Management (OMA-DM), based on a dialect of XML called SyncML, can be used to provision and manage mobile devices in an enterprise scenario. We'll show you how.

Ramon Arjona

MSDN Magazine February 2009

Wireless Web: Microsoft Mobile Internet Toolkit Lets Your Web Application Target Any Device Anywhere


If you've built Web sites using ASP.NET, you'll welcome the Microsoft Mobile Internet Toolkit (MMIT). MMIT extends the Visual Studio .NET IDE you already know by providing new controls for handheld devices letting you easily develop applications for wireless devices. This means you can write less code while adapting it to more devices. Not only does MMIT integrate with Visual Studio .NET, it extends ASP.NET as well. This article gives you the background you need to write, test, and deploy a site with MMIT and make all your code able to target specific devices for a custom fit.

Paul Yao and David Durant

MSDN Magazine November 2002

Detecting mobile device user agents in ASP.NET (Android)



Last week Android updated their software (changed the display from 480px to 800px) so all the mobile tweaks we made for our apps are no longer work on Droid Phones.

I would need to identify the User Agent(e.g. Android) and switch style sheets depending. (We don't want to redirect to another page, just switch style sheets).

Anybody know any lightweight solution ?

Thanks in Advance.

(we were using 480px pixels to identify if the user was coming from iPhone or Android and switched stylesheets accordingly.  If I changed it to 800px some desktop monitors and the iPad would see the mobile version and not the desktop version. Not good.)



Data Import issues: Access 2003 .mdb to sqlce 3.5 on mobile device

I am trying to download wirelessly or cradled, data from 3 Access 2003 tables into my SQLCE 3.5 datatables. I already have a successful method + web method that uploads data from my sqlce datatables into the Access 2003 tables. I just need feedback to know if I'm headed in the right direction. Web method: Public Function UpdateSqlCeData(ByVal downloadSet As DataSet) As Boolean ' Connect to Access DB here, execute command and populate data set with returned data. Me.Server.ScriptTimeout = 600000 Dim strSql2 As SqlCeCommand Dim oleDbDataset As System.Data.DataSet = New DataSet Dim sqlParam As New SqlCeParameter Dim fhAccDt, fhCeDt As New DataTable strSql2 = Nothing sqlParam = Nothing 'Connection string to connect to access DB Dim FHLiveDB As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\testpre\testservertest.mdb") Dim Pbrd As New OleDb.OleDbDataAdapter("SELECT * FROM tblProductBrand", FHLiveDB) FHLiveDB.Open() Pbrd.Fill(oleDbDataset) With strSql2 .CommandTimeout = 600000 .CommandText = "INSERT INTO Product_Brand ([BrandID],[Brand_Name]) VALUES (@Brand_ID,@Brand_Name)" sqlParam = .Parameters.Add("@Brand_ID", SqlDbType.NVarChar, 50, "Brand_ID&

How to get the Mobile Device Name in VB.NET

Hi , Can someone tell me how to get the Mobile Device Name in VB.NET web app? I created a web project. When the web page is browsed thru the mobile device I need to get the mobile device Name and store into the DB. I don't know how to work on it. Can someone pls advise me? Thanks.

Synchronize group calendar from Sharepoint 2007 (SBS Server 2008) using ActiveSync for mobile device


I've created a Public Folder Calendar on my Exchange Server that our Office Manager uses to inform all our partners and staff (small medical practice) of vacations, group meetings, etc.

I'd like to make this calendar available to mobile devices (1 Windows Mobile, 1 Blackberry, 3 iPhones). I know that individual user Exchange Calendars can sync, but I'm told Microsoft isn't making any effort to make this happen for Public Folder calendars because they're being deemphasized and will disappear in either the next or subsequent version of Exchange. There's a third party product that claims to do this (Outlook AddIn). Since the Public Folder Calendars are being de-emphasized in favor of the Sharepoint calendar, one would think that Activesync would be able to work with the SharePoint group calendar, but apparently that's not the case. Is my best bet still the Add to Outlook product from diditbetter.com?

Access via mobile device on claims based site



I have a claims based site with FBA setup. I have two problems:

- I use a custom made login page instead of the default FBA login. This works fine in the desktop browser, but it gives me a 403 error on my mobile device.
- I checked which page should be the mobile login. That seems to be /_layouts/mobile/default.aspx. I can access that page with my mobile device, but when I try to login, it throws an error on the server: "The security token username and password could not be validated" and I cannot log in.

I know quite sure the security token service has been configured properly, since I can login via desktop browser. I've tried entering my loginname as username, domain\user and even the claims based user id (i:0#.w|domain\username); they all fail.

MCTS in Web Application Development in .NET 2.0

I need to simulate a proxy server to test mobile device c# application.


I need to simulate a proxy server to test mobile device c# application.

Is there a way to do this? how should I do this. 

How do I detect if a browser is from a mobile device?



I have an existing ASP.NET (VB.NET) created with Visual Web Developer Express 2008.

I have recently created new pages for iPhone and other mobile devices: www.mysite.com/mobile/home

What's the best way to check if the user is using a mobile device and so redirect them to the URL above?


Adding Web Service to Smart Device Project - Windows Mobile 6 Professional


Hi All,

I'm new to developing mobile apps and have hit a brick wall. I use Web Services all the time so I know I have created it correctly and it works. The issue is that i cant seem to add it to my class or form in the Smart Device Project.

When I right click I get the option to add Web Reference, I then navigate to the url and add as I normally would. When I then try to access the service I cant seem to navigat to it from code and it is not available. I have also tried adding a Web Service directly by 'Add New Item, but this file type is not available in the list of installed templates.

Any help here would be greatly appreciated.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend