Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsMobile ProgrammingMobile Programming
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

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
Retired
Dev Shed God 9th Plane (9000 - 9499 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 9,139 jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)jabba_29 User rank is General 23rd Grade (Above 100000 Reputation Level)  Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1Folding Points: 238337 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 6 Days 43 m 26 sec
Reputation Power: 2491
Send a message via AIM 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 ? | Twitter

__________________

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 ForumsMobile ProgrammingMobile 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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap