ASP. NET MVC website Browse in Opera Mobile emulator

Source: Internet
Author: User

Mobile website, of course, for simplicity, You can also add a suffix to the view in general MVC mobile , shaped like index.mobile.cshtml . Probably most people debug such a hand machine stations are debugged with browsers, maybe is OCD, I personally like to see things like cell phones to debug more comfortable, like Android virtual machine, but Opera mobile emulator makes me prefer, here's how to use this Dongdong.

First of all, there must be an installation of opera Mobile emulator, which can be downloaded from its official website.

https://dev.opera.com/articles/opera-mobile-emulator/

My local installation is opera_mobile_emulator_12.1_windows .

after installation, add more than one browse mode to VS, create a new project, add an HTML page, right-click to browse mode

Then you can see the following interface

Click Add, and then select the path to install, and then enter the parameters. Browse the way there will be one more ~ ~ ~

Specific parameter configuration, the official website has, the following paste my configuration

Program: "D:\Opera Mobile Emulator\operamobileemu.exe"

Parameter:-windowsize 480x800-ppi 216-profile-name "Samsung Galaxy S II"

Friendly name: Opera Mobile

Samsung Galaxy S II has heard that Samsung should understand ..... This is .....

And then it is.

Select the Opera mobile and Google Chorme that you just added, click Set as Default

You can then browse to see

Haha, this completes the "mobile" on the real-time view of our page.

In addition, if you want to browse our website on Android virtual machine, it is also possible, provided that Your PC has something appropriate to install Android virtual machine.

Here's the point of note for browsing on Android virtual machines.

android is Linux kernel, including Android itself as an operating system, so This is what we entered in the emulator's browser, localhost or 127.0.0.1 represents the android Emulator (Android virtual machine), and not our computer, that's why (this is a pit-_-| |, inertial thinking 127.0.0.1)

on Android, place the address of our local computer map to 10.0.2.2, so you only need to convert the original localhost or 127.0.0.1 replaced with 10.0.2.2, You can access the Web resources on the local computer on the emulator.

said to be accessible, but as far as my current test is concerned, only Web sites published on IIS can be browsed. We can not browse our development page in real-time, this makes me very uncomfortable ....

ASP. NET MVC website Browse in Opera Mobile emulator

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.