473,656 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem in ASP.Net with Mobile Web Pages..

7 New Member
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 1710
idsanjeev
241 New Member
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
6054
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 there any other way to display/undisplay parts of web pages? TIA
3
9112
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 anyone help me and guide me, I wrote a program which could open COM port but still couldn't detect mobile phone and send SMS through it. I searched internet and I didn't find right answer to my question. please if anyone could guide me. the...
0
1765
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 Mobile Internet Toolkit to be installed over .NET Framework 1.0. Is this Toolkit required when using ..NET Framework 1.1? At this moment my research indicate that MMIT is an integral part of .NET 1.1 and DOES NOT to be installed. Can anyone confirm...
4
7005
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 the server which run these aspx pages. now my question is 1- how to detect this mobile phone which connected through serial ports 2- how I could send SMS through this mobile to other mobile devices, if anyone has any suggestion please help me
5
2339
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 devices when regular ASP.NET pages can be accessed from mobile devices? Ron
0
2226
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 Pocket PC which runs a version of Internet Explorer. I'm trying to use the application now on a Samsung SGH-F700W which uses a web browser called NetFront 3.3 (this is being supplied by Vodafone in the UK as their answer to the iPhone). On several...
7
3246
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/ Much of the info looks old. I have a MSDN account where can I download it or is it already in VS 2008 and I just don't know how to find it? I'm mainly interested in having simple pages render in Internet Explorer
2
2922
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. Basically nothing happens when you click on them...it just creates a dotted border around the links. Has anybody experienced the same issue? My target platform is Windows Mobile 6.5, my target browser is MSIE 6.0. The links work in previous platforms...
4
1995
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 selects . its working fine... say a user selects price as the sort thing . so it lists all mobiles with its price range with mobile in some range together . wht i need to do here is in the say there are 4 groups with diff price range and in each range...
0
8382
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8717
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7311
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5629
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.