How To Structure Website To Expose Mobile Version
Mar 11, 2011
Pretend i have an existing web-site, e.g.:[URL]i now want to expose a mobile version of this web-site:
m.stackoverflow.com
IIS, with its host-header name resolution, would normally require two web-sites to be created:
www.stackoverflow.com
m.stackoverflow.com
Except now i have two web-sites in IIS. This means i have to duplicate code/files between them. i don't need to (nor do i want to) duplicate all the "model" and "controller" code between two web-sites. i would much rather have one web-site that exposes a mobile version.
i could have the default page in m.stackoverflow.com simply perform a redirect to a mobile landing page on the "real" web-site:
m.stackoverflow.comdefault.asp:
<% Response.Redirect "www.stackoverflow.com/mobile" %>
Then the client will end up at (for example) www.stackoverflow.com/mobile/default.aspx.
This isn't what i want. i want it to appear to the browser that they are visiting m.stackoverflow.com.
So what i could do in IIS is have two host-header names for one IIS web-site:
stackoverflow.com
m.stackoverflow.com
and inspect the http-request HOST header: [URL]
Host: stackoverflow.com
[Code]....
View 1 Replies
Similar Messages:
Sep 2, 2010
i have a web created on asp
And i want to make it mobile phone web, such that user can use it through his / her cell phone. I don't have any knowledge about XML And also i don't have knowledge of .NET. How can I do this?
View 2 Replies
Feb 13, 2011
creating a mobile version of the website I have created in WebMatrix. I have created the website and the email form and the data input forms and all seems to work ok with the SQL Server Compact 4 database, but I now want to create a version to run on my smartphone (it's a htc hd2 running windows mobile 6.5.3, though I think I may have to produce it to run on windows mobile 7 -feel free to comment).
There are some good tutorials out there for WebMatrix generally but I have yet to find anything covering the scenario above.
The other query relates to deploying the WebMatrix site. I know there is webhosting offered on WebMatrix, but I can't find a simple guide to what spec to be looking for in any package offering webhosting. (poor student looking for cheapest offer for trialling practise sites) I think I have come to the conclusion that if they offer Microsoft ASP.NET 4 then that should be ok for the Razor syntax and cope with the cshtml, and that at the basic level I am working at I don't need an SQL database as part of the hosting package as the compact travels as a file with the rest of the site.
View 4 Replies
Aug 31, 2012
I have googled this topic and found lots of solutions like
[URL] ....
[URL] ....
But still I am confused how to start. I have made some asp.net websites in which i was applying JQuery, Ajax, webservices this technology. Now i want to make that website in a lighter mobile version(windows phone, android phone, tablet, iphone, other mobile device).
View 1 Replies
Feb 2, 2011
i have developed a mobile version of a website which using ajax and displays at 100% width via css.this displays and works fine on the HTC phones, i have a few issues below, i have read a few post saying you can preset the phones browser settings do you know how i can fix the problems below?iphone - my css width is 100% the iphone is scaling the site to a very small versionblackberry - ajax is not working
View 1 Replies
Dec 3, 2013
I have one mobile website using ASP.NET with c# language. The problem which i have rise you that, I have two websites with same domain name, they are Desktop websites and mobile website
1. Desktop websites ->www.****.com -> this is i have used to view full websites in IE,FIREFOX,CHROME,etc...
2.mobile website ->www.****.com -> this is i have used to display mobile website using any mobile devices like iphone, stc, nokia, samsung, etc...
In my mobile website have one button which is for "view full website" . If i click on that from mobile the link which i want to show full website with the same mobile device what devices i have using.
View 1 Replies
Oct 15, 2010
I have a existing web site which is developed in Asp.Net / AJAX 3.5, C#, Now I need to make this site available in Mobile version.. and I came across an open source tool [URL]
But I am not sure How do I integrate.. this in my existing application...
Also my site is running in godaddy shared hosting server..
View 2 Replies
Feb 3, 2010
I currently have a ASP.NET web application that was designed for desktops/laptops. Now we need a mobile version of this application. I have never developed mobile application before and am looking for any good tips before i start. Things that i have been thinking about like how do you know when load the mobile version or the normal version.
View 2 Replies
Feb 16, 2011
I am about to a client develop a mobile version of their EPiServer site. The mobile version should have different functionality than the regular but some content might be shared so that it won't have be maintained twice.
I'm thinking about using jQuery Mobile as the user interface system to reach as many users as possible with the same solution and possibly 51degrees.mobi for best detection of mobile devices.
Does anyone have any experience in how to do this with EPiServer? How to structure? I'm thinking of using a sub-node (/mobile) that gets hidden on the regular site but I'm not sure it's the best solution.
View 1 Replies
Jan 12, 2011
I have an existing web application developed in Asp.Net F/W 3.5 and a mobile version of the same need to be created.
May i have some suggestions on:
How can i start with?.Some links & sites that would give me more clarity on how to approach this requirement. Is there any ASP.Net/iis features or Visual Studio option that ease this mobile version creation? As there are RadControls & Ajax used throughout the application, what should i be careful about? Will it require every form in the UI to be replaced and take the same time as the old UI creation? What all thinks should i be considering in the performance/optimization point of view?.
View 3 Replies
Feb 26, 2015
this is my css for the mobile version I was just wondering how I can change the size of the textboxes for the mobile version to make them smaller but don't change on the computer version? if you go here on the mobile version youll see what I mean URL... the code for the form is inside this class tag.
<section class="left-col">
</secion>
PHP Code:
/*--------MEDIA!!!-----------*/@media screen and (max-width: 478px){ body{
font-size: 13px; }}@media screen and (max-width: 740px){ nav {
width: 100%; margin-bottom: 10px; } nav ul{ list-style: none;
margin: 0 auto; padding-left: 0px; } nav ul li{ text-align: center;
margin-left: 0 auto; width: 100%; border-top: 1px solid #878E63;
[Code]......
View 6 Replies
Dec 10, 2010
i m creating asp.net Mobile website page to download symbian .sis file to mobile ,but its not geting download properly.its working perfectly on desktop.
View 2 Replies
Aug 28, 2013
Post Publish and Share content on user’s FaceBook Wall or Timeline using Graph does not work on the mobile version.
Redirects to a page with an error, the desktop version works on mobile no, is how to fix it
View 1 Replies
Dec 15, 2010
I've got an external site that's built in SharePoint 2007. the user of the site need to have an option to view the full site when accessed from a mobile device. I am thinking of just creating a button control to do this. The question is, what would be the best solution to do this?
View 1 Replies
Oct 27, 2010
i have to build a ASPNET website on which some functionalities will be available to logged in users.I'm trying to understand the right thing to to in building my pages.
I've found the following code in Page_PreInit:
protected void Page_PreInit(object sender, EventArgs e)
{
if (Membership.GetUser() == null) //check the user.. Weather user is logged in or not
{
this.Page.MasterPageFile = "~/General.master";
}
if (Membership.GetUser() == "ADMIN") //check the ADMIN.. Weather ADMIN is logged in or not
{
this.Page.MasterPageFile = "~/ADMIN.master";
}
else
{
this.Page.MasterPageFile = "~/Member.master";
}
}
..but i don't' know if this is the right approach in designing an app.Is it right to switch at runtime Master page according to username/role?
View 1 Replies
Feb 17, 2011
ASP.NET, web form model.Is there any sample code/site that demonstrate a couple samples for regular website patterns/ templates? Like if I want to use tab to switch between different pages, should I put the code in a single page or in different page, and treat each tab as a page.Or if in a search page (just a single search bar and button), should I display my result panel in same page using dynamically enable the result panel, or just to another page? I want to find a general design pattern/ template.
View 2 Replies
Nov 16, 2010
I have an ASP.Net website as one of the projects in a Visual Studio 2010 solution. I have several files in my ASP.Net website project which are named correctly according to the expected pattern of *.aspx and *.aspx.cs, however, when I view them within the ASP.Net website project, they are not displayed hierarchically and are instead displayed in a flat file view adjacent to each other. How do I get the files to display hierarchically within Visual Studio as they are normally when I add a brand new .aspx page to the website project? I have been looking all over for a corresponding Visual Studio MSBuild or settings file that might be storing these hierarchical display settings but have found nothing as of yet.
View 1 Replies
Jul 9, 2010
Can you point me to a url for the proper directory structure to create for a new website?I can create a website project and add class library projects to the solution to create a fully functional website.My grey area is that I need to zip up the web site solution and hand it over to the client.I'd like to make sure that I hand over a solution with the most proper directory structure.I'll run you through a scenario:
1. Select File > New > Web Site > ASP.NET Web Site from the main menu
2. Save with a path of C:ProjectsTestWebSite
3. Right-click the solution in VS and select Add > New Project > Class Library
4. The new class library is added with an automatic path of C:ProjectsTestWebSite (2)MyClassLib1
It seems like there should be a way to create a better structure for this but I'm just not following the correct process. Can you point me to a url with instructions for managing a proper structure for this?
View 1 Replies
Jan 10, 2010
on my current contract, they're telling me that they want to store and upload files outside the website structure - same drive, but a different path (like C:Files)
They also want a page inside the website to list them - that part I can do - I use System.IO to list all the files in that folder, and put an HTML hyperlink to each one of them.
However, when you click on the files, they don't open.
The boss tells me this can be done by somehow making this outside folder a share and using impersonation - but I don't get it.
View 1 Replies
Mar 29, 2011
I am running an asp.net website.which is working perfect.
now my boss is asking me to put version of the website.On what scenario i can do this part.
View 3 Replies
Oct 18, 2010
I have created a simple app with a page having a server side form, three fields and a button that submits and performs two operations - 1) adds the form fields to the database table 2) sends an email. Now everything works fine on the web browser on my machine but when I access the app through my mobile, the page does not seem to work. the UI and all are set but the button click functionality doesnt seem to be working and also the label which is set after a successful submit is already visible and showing the "thank you" message. Am i doing something wrong here? I have checked the app on Nokia Smartphone browser, android phone, and iphone simulator.
View 2 Replies
Sep 6, 2010
i am developing a mobile website ... and the target devices are windows mobile or black berry... following is my form code...
[Code]....
i have uploaded the site to the server .... when i try to access the site... it is showing the 404 error... but working in Windows Mobile simulator with out any error
View 1 Replies
Jul 14, 2010
I'm developing a web site in ASP.NET/C# that is targeted at mobile users.
What calendar control do you recommend, that will work on Nokia, Safari, Opera?
View 3 Replies
Nov 15, 2010
Usually in an ASP.NET Web Application I would write - My.Application.Info.ProductName or My.Application.Info.Version, but I'm looking at an older ASP.NET Web Site and it doesn't have the Application option.
Does anyone know the equivalents?
View 2 Replies
Apr 4, 2010
to send and receive messages from my website on to a mobile and if it is then how.
View 8 Replies