Mobiles :: Switch Between Two Pages Depends On By Which Device User Visit?
Feb 19, 2011
Say that, there is a login.aspx page for any application. I would like to see this login page in different format if user visit by Iphone or any other mobile device. I have already designed two different page for test purposes. If i visit the page which is modified for Iphone, everything works fine.
what is the best way to switch between these two page depends on by which device user visit? These two pages could be even totally different two pages like black and white because of page layout issues.
View 2 Replies
Similar Messages:
Jan 21, 2011
Mobile web is no longer supported in latest version of Visual Studio. Please do following with Vs2008 or VS2010
- Create standard ASP.NET website with standard "Web Forms"
- Design the content of web forms for your mobile pages based on device family that are
going to access your website. For e.g. iPhone, Andriod
- Add a detector process, which detects from where request is coming. If it is mobile than redirect user to mobile optimized pages.
- Different mobile has different capabilities (e.g screen size, image support, html support, xhtml support etc.). So it is very important that you know what type of device is trying to access your website and accordingly render required HTML/XHTML supported by the mobile device. [URL] So I have a basic website with .aspx pages. When they are on a blackberry the words wrap on top of the second line over the TEXTBOXES. Is there a basic place that can tell me how to fix this? Or what to use in the place of the CSS that are causing this on the blackberry devices?
View 2 Replies
May 7, 2010
I have an asp.net C# website. Because of iPhone doesn't support flash i want to change a theme of my site on page load or init if user using it. Could any one show me (code in c#) how to determine that user is browsing my website using iPhone or iPad, not a blackberry, or android etc.
View 2 Replies
Sep 19, 2010
I have an activex component on my webpage, which is built specifically fro Windows Mobile. This activeX component has a dll which needs to be registered on the device. How Do I register it?
View 1 Replies
Mar 23, 2010
details of device by which I can get the input for GPS location independently without a fixed ic chip? I want to write the code myself for that then display on the screen; like many gps street locator or any other device available in market. I need initial level of code for chip and intial level code example for .net.
Apart from this I know the something about this like attach the device in the port . Detect the the port with device and read the data using API or dll whatever and start processing and then display on the output device.
View 1 Replies
Jul 21, 2010
I am working on a web mobile application in which i want to call an exe which is installed in the mobile from web application running on that mobile by clicking a link. How can i do that?
View 3 Replies
Oct 8, 2010
I am working on a smart device project and want to run on emulator.i have completed the application.but now i want to run it on Emulator in vs2008.
View 1 Replies
Dec 20, 2010
Is there any way to get the address book contacts from a blackberry device in a .net web application?We have a .net web application that can be accessible from a Blackberry device.What we need is a way of getting the Blackberry contacts list from a blacberry device the same way when you send an email:When you send an email you can type some characters on the "To" field then hit "enter" and the blackberry device is doing a lookup function returning a list of contacts based on the keywork you typed. Maybe there is a way of calling a blackberry API from a javascript function that would perform the same way described.
View 2 Replies
Mar 16, 2010
I am trying to get the screenHeight and width:
[Code]....
but this is always show that the Height is 480 & the width is 640
I am trying on HTC with Opera Mobile 9.5
View 10 Replies
Mar 14, 2011
i have a gprs device that logs data to a webpage.i am using get method for the data transfer from device to web application. This function is working perfectly. what i want to do now is by clicking a button to send a get method from server to device in order to triggger it to do some actions. the device is correctly receiving the get method and sends a responce. The problem is that the http responce the device is sending might be wrong because the browser is waiting until timeout and then it displays the responce. does anyone knows what is the http responce format?
View 1 Replies
Jan 27, 2011
Since the mobile device browser file is no longer support, what is an alternative to it that requires minimum code changes?
View 2 Replies
Jan 24, 2010
I have a ASP.Net application, that has barcode scanning functionality built into it.If a user is on regular computer like laptop or desktop, then I can simply connect the USB barcode scanner to the USB port and the barcode functionality works fine.But if a user is accessing the ASP.Net application over a windows mobile device, then how can a barcode scanner be connected to his/her mobile device?
View 1 Replies
Mar 18, 2011
I am using Visual Studio 2008, I am new bie to create windows mobile application. I haven't installed Windows Mobile 6 SDK. I have started with built-in SDK and Emulators of VS 2008..
My question is, Can i create windows mobile application without connecting device ( Mobile or Pocket PC )?
View 6 Replies
Jan 23, 2010
Is it possible to connect to SQL Server 2005 ( not SQL Server 2005 CE) from a mobile device?
View 6 Replies
Nov 17, 2010
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.
View 2 Replies
Mar 31, 2011
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.
View 2 Replies
May 28, 2010
I have a website which contains several ajax enabled pages. I need to maintain state in each page. I have added historypoints in each page. My back button works fine as far as I am on single page. But when I visit different page and then click back button to come to original page, only the last history state for that page is loaded and all other seem to get wiped out. What I mean is, clicking back button again takes me to previous page instead of loading same page again from history point. Is there any way to maintain history points even when I visit different pages
View 4 Replies
Apr 27, 2016
i have table as tbl_userimage
imagename eg. user1.jpgusername user1
how to display image by its name in database depends upon username
View 1 Replies
Oct 28, 2010
i have tow master pages .i want to switch between them according to a some condition
i work with this code to load master page what i want
at every page
[Code]....
i wirite this code for every page in my application
how can i write this code only once such as in Global.asax
View 5 Replies
Jun 15, 2010
I've built a Repository that gets user details
Public Function GetUserByOpenID(ByVal openid As String) As User Implements IUserRepository.GetUserByOpenID
Dim user = (From u In dc.Users
Where u.OpenID = openid
Select u).FirstOrDefault
Return user
End Function
And I'd like to be able to pull those details down IF the user is logged in AND IF the cached data is null.
What is the best way to create a User object that contains all of the users details, and persist it across the entire site for the duration of their visit?
I Was trying this in my Global.asax, but I'm not really happy using Session variables. I'd rather have a single object with all the details inside.
Private Sub BaseGlobal_AcquireRequestState(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.AcquireRequestState
If Session("UserName") Is Nothing AndAlso User.Identity.IsAuthenticated Then
Dim repo As UrbanNow.Core.IUserRepository = New UrbanNow.Core.UserRepository
Dim _user As New UrbanNow.Core.User
_user = repo.GetUserByOpenID(User.Identity.Name)
Session("UserName") = _user.UserName()
Session("UserID") = _user.ID
End If
End Sub
View 1 Replies
Aug 3, 2010
I would like to use with asp.net progress bar,I have a problem, because the popup window opened in asp.net.In the popup window, switch between pages that I want to use the progress bar
View 5 Replies
Aug 17, 2010
Currently, I'm just using clientside Javascript (location.href), but I am wondering if there is a way in Asp.Net to figure out the URL the user originally entered (assume I did not change it myself via 301), or at least to track it in a simple and reliable manner. As I am using my own implementation of URL rewriting via the global.asax (e.g. Context.RewritePath), this is not an easy task, particularly since I don't want to touch it too much.
Example
Global.asax:
public override void Init()
{
base.Init();
this.BeginRequest += new EventHandler(Global_BeginRequest);
}
void Global_BeginRequest(object sender, EventArgs e)
{
if (VARIOUSCONDITIONS) Context.RewritePath("SOMEURL");
}
SomePage.aspx.cs
protected void Page_Init(object sender, EventArgs e)
{
//Request.RawUrl is equal to "SOMEURL", as
//are other properties that store the URL.
}
View 1 Replies
Mar 21, 2010
Using the vertical split view, it appears as though it defautls to displaying the source on the left, and the design view on the right. How can I switch tme around?
View 1 Replies
Jan 18, 2010
I want to alert a user of a new message using some kind of USB device (e.g. a flashing light). Is it possible to control a USB device from ASP.NET or Silverlight?
View 3 Replies
Jun 28, 2010
What is the best way to respond to browsers that have a small form factore (ie mobile devices)? Is there a way to have it return a different aspx page if the size is below a set number?
View 2 Replies