Wrox Programmer Forums
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2005, 05:13 PM
Authorized User
 
Join Date: Jan 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP with WML help required if you can.

Hi, Im working on a wml site, with asp database. I have a news section in the site, on the page news.asp I have 3 news headlines and each headline with a link to display MORE of the story. I can output the headlines no problem. I can also make a new card in the deck and output some text and the link works. However when I make my new card in the deck and try to output the asp news story, Im getting errors. I shall paste my code see if anyone has any tips. Thanks!

Neil

<%
    Response.ContentType = "text/vnd.wap.wml"
    Dim objConn, objRS
    Set objConn = Server.CreateObject("ADODB.Connection")
    Set ObjRS = Server.CreateObject("ADODB.Recordset")

    objConn.Provider = "Microsoft.Jet.OLEDB.4.0"
    strDBFile = Server.MapPath(".") & "\dsn.mdb"
    objConn.Open strDBFile
    Set objRS.ActiveConnection = objConn

    objRS.Open "SELECT * from news"
%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <card id="news" title="News">
        <p>
            Current News Stories:<br/>
        </p>
        <%
        While Not objRS.EOF
        %>
            <p><%=objRS.Fields("headline").Value><br/></p>
            <p><a href="#story<%=objRS.Fields("newsid").Value%>">Mor e</a></p>
        <%
            objRS.MoveNext()
        Wend
        %>
        <p><br/></p>

    <p><a href="index.asp">Home</a></p>

    </card>

    <card id="story001" title="News">
            <p>ASP story here</p>
        <p><br/></p>
</card>

<card id="story002" title="News">
            <p>ASP story here</p>
        <p><br/></p>
</card>

<card id="story003" title="News">
            <p>ASP story here</p>
        <p><br/></p>
</card>
</wml>
 
Old June 3rd, 2005, 06:05 AM
Authorized User
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Alexpizzoferro
Default

Got a strange feeling there is a need in the Coffee House Wap Site!

Also think your code is sorted now, so people don't need to fix this for you anymore do they?

http://www.loghopper.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
xml transformation to wml using asp.net arunagottimukkala ASP.NET 1.0 and 1.1 Professional 1 November 7th, 2007 07:23 AM
help required for using DataGrid in asp.net priyaashok ASP.NET 1.x and 2.0 Application Design 3 June 9th, 2005 09:36 AM
XML/ASP/Javascript combo......help required crmpicco Classic ASP Databases 1 March 4th, 2005 06:50 AM
Basics required for ASP gsvirdi Classic ASP Basics 3 November 22nd, 2004 06:32 PM
asp-wml -databse andy11983 Classic ASP Basics 0 April 12th, 2004 05:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.