Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / March 2005

Tip: Looking for answers? Try searching our database.

WML submit button wont appear

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luke Fitzgerald - 22 Mar 2005 21:57 GMT
Hi lads,
Im developing a wap site for a project and im stuck badly and its due in in 10 days!!
I am using WML and ASP. What id like to do is have a drop down menu with a list of counties. the user selects one and is taken to another page where a list of towns in that county are listed. Using an emulator on line it works but when i check it on my mobile the submit button wont appear. Its a microsoft dataabase called fyp with CountyTable and TownTable in it. Here is my code. Any help will be greatly appreciated.
Thanks,
Luke

<%Response.ContentType="text/vnd.wap.wml"%>
<%Response.write("<?xml version=""1.0""?><!DOCTYPE wml PUBLIC ""-//WAPFORUM//DTD WML 1.1//EN"" ""http://www.wapforum.org/DTD/wml_1.1.xml"">")%>

<wml>
<card>
<p>
<%
dim adoCon, rsRecordset, STRsql,TEMP

Set adoCon = Server.CreateObject("ADODB.Connection")
Set rsRecordSet = Server.CreateObject("ADODB.Recordset")
adoCon.mode = adModeReadWrite
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("FYP.mdb")

STRsql = "Select * from CountyTable"
rsRecordSet.Open Strsql ,adoCon, 3, 3
%>

<select name="mid" title="County">

<%while not rsRecordSet.EOF%>

<option value="<%=rsRecordSet("CountyID")%>"><%=rsRecordSet("CountyName")%></option>

<%
rsRecordSet.MoveNext
wend
rsRecordSet.Close
set rsrecordset = nothing
adocon.close
set adocon = nothing
%>

</select>
</p>

<do type="accept" label="Select County">
<go href="town.asp" method="get" >
<postfield name="mid" value="$(mid)" />
</go>
</do>

</card>
</wml>
Chance Hopkins - 23 Mar 2005 08:14 GMT
This is just a wild guess, but figured I'd try to help.

Is it the space in the label attribute value?

Perhaps the device you tried can't handle it for some reason. Try it without
the space and see if it works.

<do type="accept" label="Select County">

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.