Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 10th, 2004, 04:28 AM
wai2324 wai2324 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 8 wai2324 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation ASP + WML: Loading error in Nokia Mobile Browser for ASP file

Hi, I am doing a project on accessing MS Access database using ASP and WML. I'm very new to ASP and WML. I'm using Nokia Mobile Browser 4.0 to view all my ASP files after installing IIS. But it keeps on giving me the same kind of error on the screen: Cannot load http://localhost/login.asp (HTTP Error 500 Server Error)
What does it mean? Is there anything wrong with my codes?
And am I coding ASP correctly? 'cos I require the user to click buttons and not links to move to the next "card"/file.
Do I use a form to declare my buttons? Or is there any other way to include submit buttons?
Do I have to include <% %> for my buttons?
Do I have to create System DSN to add my database for my ASP to connect to my db?
Do I have to create my login.asp as XHTML instead of ASP for my buttons?

Below is my code for login.asp

<%Response.ContentType="text/vnd.wap.wml"%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>

<card id="login" title="Login Page">

<p align = "center">
<form action="#validate" method="get">
Please enter User ID and Password.<br/>

User ID : <input type="text" name="userid" maxlength="10"/>
Password :
<input type="password" name="pw" maxlength="10"/>
<br/>

<input type="submit" name="Submit" value="Login"/>
<input name="Reset" type="reset" value="Reset"/>

</form>
</p>
</card>

<card id="validate">

<%
Dim conn
Dim rs
Dim sql, userID, passwd

userID=Request.QueryString("userid")
passwd=Request.QueryString("pw")

Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("db.mdb")
sql = "select * from UserProfile where ID='" & userID & "' and password='" & passwd & "'"
Set rs = Server.CreateObject("ADODB.Recordset")

rs.Open sql, conn

Do While not rs.EOF
%>
<do type="accept">
<go href="welcome.asp"/>
</do>
<%
Loop
}
else{
%>

<p align="center">Invalid Username or Password
<a href="#login">Re-Login again</a>
</p>
<%
}

rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing

%>
</card>

</wml>

I would appreciate greatly if anyone can advise 'cos I really know nothing about ASP. Already tried searching information in the web but alas, nothing much. Need help urgently..

Reply With Quote
  #2  
Old August 23rd, 2005, 09:52 AM
wbiggy wbiggy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 wbiggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 47 sec
Reputation Power: 0
Smile I bet there is no problem in your code, but double check

I bet there is no problem in your code, but double check

there might be a character missing , or anything simple

like forget to close a tag e.g </p> which will cause your mobile browser not to work, so you can try to get S60 SDK "6230i" and it works even if you have Errors, the get the 3300i think its a S40 SDK then it will not work, because its more case sensitive,

and again if you for example for get to put name="Password" in the input tag <input type="text" maxlength="2"/> it will fail


so check these kind of errors


I have just also started with WML Programming
Thanx for you time
My email is wbiggy@msn.com
+27820629080
South Africa

Wilbur Sean Bvuma

Reply With Quote
  #3  
Old August 23rd, 2005, 10:46 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,756 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 6 Days 20 m 42 sec
Reputation Power: 1632
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Hi Wilbur,

Welcome to the forums.

This thread is over a year old, and surely been sorted or at least forgotten by the OP, so don't bring up these kind of threads in future.
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure


__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.



__________________

Reply With Quote
  #4  
Old January 3rd, 2007, 03:36 AM
carbonrock carbonrock is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 1 carbonrock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 57 sec
Reputation Power: 0
Great! I got solution from devshed

Hi, jabba_29

I got stopped knocking my head after reading this thread. Please dont stop posting replies for howlong it may be. Beacause it may be useful for others like. Thanks. Bye

Carbonrock

Last edited by carbonrock : January 3rd, 2007 at 03:51 AM. Reason: Reply to Person edited

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > ASP + WML: Loading error in Nokia Mobile Browser for ASP file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway