473,231 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

Problem in ASP.Net with Mobile Web Pages..

I have problem with a Mobile Web page in ASP.Net 2.0 Web Application..

First i made a 2 page site in normal ASP.Net Web Application that is having two pages one for login and another one for email list. this is simply fetching emails from my email account and displaying from and subjects to a list box That is working fine its on www.gajjarsystems.com/wm.

Now i just changed those two pages into Mobile Web Pages with their components and same coding (socket programming is in a class). When i run that application on computer its working fine. but when i run that from my cell phone then its showing fist page of login fine but when i submit login page its not working and giving an error "Something is wrong page could not be loaded" i tried many time but its not working.. i have tested from google wap proxy as well (http://google.com/gwt/n). its not working on there also. the funnything is the same thing if i open using Internet Explorer in my windows XP then it works fine.. its on www.gajjarsystems.com/wapmail

Here is what i did..

First Login Page :
Expand|Select|Wrap|Line Numbers
  2. Partial Class Default2
  3.     Inherits System.Web.UI.MobileControls.MobilePage
  5.     Protected Sub Command1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Command1.Click
  6.         Dim cku As New HttpCookie("UserId", TextBox1.Text)
  7.         Dim ckp As New HttpCookie("Password", TextBox2.Text)
  8.         Response.Cookies.Add(cku)
  9.         Response.Cookies.Add(ckp)
  10.         Response.Redirect("Mails.aspx")
  11.     End Sub
  13.     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  14.         If Not Request.Browser.IsMobileDevice Then
  15.             Form1.Visible = False
  16.             Form1.Dispose()
  17.             Response.Write("Invalid Device")
  18.         End If
  19.     End Sub
  20. End Class
Second Mail List Page:
Expand|Select|Wrap|Line Numbers
  2. Partial Class Mails
  3.     Inherits System.Web.UI.MobileControls.MobilePage
  4.     Dim UserId As String
  5.     Dim Password As String
  7.     Protected Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Form1.Load
  8.         UserId = Request.Cookies("UserId").Value
  9.         Password = Request.Cookies("Password").Value
  10.         Label1.Text = "Welcome " & UserId
  11.     End Sub
  13.     Protected Sub Command1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Command1.Click
  14.         Dim mList As New ArrayList
  15.         Dim Mailbox As New QMailClient.POP3Client("mail.gajjarsystems.com", UserId, Password)
  16.         If Mailbox.Login() Then
  17.             Try
  18.                 For i As Integer = 0 To Mailbox.GetMailList(True).Count - 1
  19.                     Dim Email As New QMailClient.EMail
  20.                     Dim subj As String = Mailbox.GetMailList(True)(i).subject()
  21.                     mList.Add(subj)
  22.                 Next
  23.             Catch ex As Exception
  24.                 Response.Write(ex.Message)
  25.             End Try
  26.         End If
  27.     End Sub
  28. End Class

Plz help me......
Mar 8 '08 #1
1 1692
241 100+
Hi kaushalgajjar
you know your question about .net but question posted by you in ASP so please post your question in .net forum.
Mar 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
by: Sara | last post by:
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could...
by: Wiktor Zychla | last post by:
Hi there, I've just started to dig into mobile ASP.NET and I'd really wish to clarify few things. I have the experience with ASP.NET. 1) Some tutorials mention something called Microsoft...
by: Sara | last post by:
Hi I want to code a program which could send SMS through web page to mobile phone, but because there is no Service here such as SMPP , therefore I have GSM mobile phone which connected directly to...
by: rn5a | last post by:
I've come across numerous mobile phones with which ASP.NET pages can be accessed on the Internet. Then why has Microsoft developed a separate programming model to create ASP.NET apps for mobile...
by: jamestilby | last post by:
Hi all, Hope someone can help with this - I am tearing my hair (singular) out. I developed an application using asp.net 2.0 and Mobile Controls. Up till now I have been testing it with a...
by: cj2 | last post by:
I saw a MS demo a few years back where they developed a web page and the software automatically rendered it for different devices. Is this what I'm looking for? http://www.asp.net/mobile/ ...
by: kristin09 | last post by:
Hi guys, I have a windows mobile application that has html pages generated on the fly (some pages have links in them). With the new browser MSIE 6.0 the links on the pages are not read as links....
by: pradeepjain | last post by:
i had posted the same code in javascript area !! this i am posting bcos of different problem. as you can see in ma code there is a dropdown called sort ...its sorts the result by the value he...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.