473,396 Members | 2,021 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,396 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
  1.  
  2. Partial Class Default2
  3.     Inherits System.Web.UI.MobileControls.MobilePage
  4.  
  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
  12.  
  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
  21.  
  22.  
Second Mail List Page:
Expand|Select|Wrap|Line Numbers
  1.  
  2. Partial Class Mails
  3.     Inherits System.Web.UI.MobileControls.MobilePage
  4.     Dim UserId As String
  5.     Dim Password As String
  6.  
  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
  12.  
  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
  29.  
  30.  


Plz help me......
Mar 8 '08 #1
1 1699
idsanjeev
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.
thanks
Mar 10 '08 #2

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

Similar topics

7
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...
3
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...
0
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...
4
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...
5
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...
0
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...
7
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/ ...
2
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....
4
pradeepjain
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.