SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

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 ASP Free Forums Sponsor:
  #1  
Old April 1st, 2001, 09:35 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
symbol retreived via database causes asp page to fail

<i><b>Originally posted by : </b></i><br />This is to do with WAP (WML) but the asp database retreval is giving me the problem:- <br /><br />Using ASP, the NAME field is pulled from a database and some NAME fields are called "Windsor 'A' "<br />The ' needs to be replaced before the wml is processed.<br /><br />I have tried replacing: -<br /><br />oRSc("NAME") below within the option WITH server.HTMLEncode (oRSc(NAME))<br />But still the ' is shown the and wml fails. <br /><br />Please can someone help me by modifiying the below code to work even though ' is sometimes contained within the NAME part of database.<br /><br />PS I don't care if the ' is deleted or replaced with a space as long as the rest of the field is visable (ie. "Windsor 'A' " could become "WINDSOR A " on the wap display)<br /><br />I have spend a few weeks trying to sort this out but as I am an complete amature, trial and error is really causing me a headache.<br /><br /><br />********** PART OF ASP CODE:- ***************<br /><br />do while not oRSc.eof<br /> <br /><br /> Response.Write "<option value='" & oRSc("NAME") & "'>" & _<br /> oRSc("NAME") &_<br /> "</option>"<br /> oRSc.MoveNext<br /> loop<br /> <br />oRSc.Close<br />set oRSc = nothing <br /><br />************************************************<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > symbol retreived via database causes asp page to fail


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 2 hosted by Hostway
Stay green...Green IT