|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
hi, I am new to the forum
I am developing an application using WML and ASP. When i mix ASP code in WML my WAP simultaor is showing "unknown response" my code was working fine..till i inserted <select > and <option> tag to create a list box.My listbox retrieves values from sql table here is a part of my code......... <%Response.ContentType="text/vnd.wap.wml"%> <%Response.write("<?xml version=""1.0""?><!DOCTYPE wmlPUBLIC ""-//WAPFORUM//DTD WML 1.1//EN""""http://www.wapforum.org/DTD/wml_1.1.xml"">")%> <wml> <card> <p> <% Dim username_querystring, password_querystring,objconn,objrs,strsql,objrs1,strsql1 username_querystring=request.querystring("username") password_querystring=request.querystring("password") Set objconn=Server.CreateObject("ADODB.Connection") objconn.Open="Provider=SQLOLEDB;Data Source=10.100.1.6;Database=" ";User ID=" ";Password=" ";" set objrs = Server.createobject("ADODB.recordset") strsql="select username,password from web.dbo.users where username='"&username_querystring&"'" objrs.open strsql,objconn set objrs1 = Server.createobject("ADODB.recordset") strsql1="select distinct group_name from web.dbo.groups" objrs1.open strsql1,objconn if objrs.BOF then response.write "This is not a valid username" response.write "<BR>" else objrs.MoveFirst do while not objrs.EOF if (strComp(objrs("password"),password_querystring,vbTextCompare)=0) then %> </p> <p> Your Message<input name="message" size="20"/><br/> Group<select name="group"><br/> <%do while not objrs1.eof%> <option value="<%=objrs1("group_name")%>"><%=objrs1("group_name")%></option> <%objrs1.movenext loop %> </select> </p> <p> <anchor> <go method="get" href="message.asp" > <postfield name="message" value="$(message)"/> <postfield name="group" value="$(group)"/> <postfield name="username" value="<%=username_querystring%>"/> </go> submit data </anchor> </p> <% else response.write"your password is not correct" end if objrs.movenext loop end if objrs.Close set objrs= Nothing objrs1.close set objrs1= nothing ObjConn.close Set Objconn =Nothing %> </card> </wml> Please help me. thanks! |
|
#2
|
||||
|
||||
|
What's the WML that it's outputting?
Firefox has a wml browser you can use that will allow you to view the source code. My guess would be that one of your objrs1("group_name") things is outputting something funny. |
|
#3
|
||||
|
||||
|
Opera too can render wml pages.
__________________
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 # Any form of employment is strictly prohibited ...... __________________ 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. __________________ |
|
#4
|
|||
|
|||
|
Thanks ..my code is working now
Quote:
|
|
#5
|
||||
|
||||
|
Care to tell people what was wrong?
May help someone in the future who has similar issue .... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > ASP code inside WML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|