Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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
  #21 (permalink)  
Old June 20th, 2007, 06:41 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

My experience with chilli soft was poor. Yes it works however IMO far from ideal. I was using it to write PHP on windows some time ago, i may have improved since.

Hey Imar - should an option tag's selected syntax need anything other than just the word?
I have always written, EG:
<option value="someValue" <% if someCondition = someOtherCondition then %> selected <% end if %>>
By the looks of your post above, should it be?
<option value="someValue" <% if someCondition = someOtherCondition then %> selected="selected" <% end if %>>

Wind is your friend
Matt
  #22 (permalink)  
Old June 20th, 2007, 07:11 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, i'd much rather be in a native asp environment, but moving to another server with my current work load would be problematic. btw... i think the selected syntax is to pass xhtml strict form validation.

  #23 (permalink)  
Old June 21st, 2007, 01:05 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Matt,

This is indeed about XHTML validation. In earlier versions of HTML you could simply use an empty attribute like selected.

However, XHTML doesn't allow it, as it is basically HTML rewritten in XML. XML doesn't allow things like "empty attributes" so you need to give a value. AFAIK, all the previously empty attributes now take the attribute name as its value, hence selected="selected"

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #24 (permalink)  
Old July 9th, 2007, 01:40 AM
Authorized User
 
Join Date: Jun 2007
Location: Las Vegas, Nevada, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok so I am still kind of new to ASP but here is something I see and it only stands out to me because I have made this same error..

===Your Code===
<tr>
<td>Natural Name</td>
<td><input type="text" name="insertNaturalName" rows="12" value="<%=rs("naturalName")%>" ></td>
</tr>

===============

Where you are using your recordset to place the value in the text box you need to write the line like ..


<td><Input Type="text" name="insertNaturalName" rows="12" value="<% Response.Write rs("NaturalName") %>"> </td>

You are Missing the Response.Write if you dont add it it has been my experiance that your value will not be displayed. again I had this same issue not that long ago.. Hope this helps


-Jim

  #25 (permalink)  
Old July 9th, 2007, 01:49 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Hey Jim.

FYI : The '=' sign in between the opening asp delimiter (%) and the 'r' is shorthand for response.write - EG This:

<%= "sometext" %>

is the same as

<% response.write "someText" %>

Wind is your friend
Matt
  #26 (permalink)  
Old July 9th, 2007, 02:22 AM
Authorized User
 
Join Date: Jun 2007
Location: Las Vegas, Nevada, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow learn somethign new everyday.. I would feel dumb but like i said im still very new to ASP.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent - Send mail with plain view and html view ashish.dadhwal ASP.NET 2.0 Professional 0 November 27th, 2008 01:49 AM
Disable View>Source (disable html source) kazmughal44 HTML Code Clinic 11 December 11th, 2007 11:53 AM
HTML - no View Source GreenLamar HTML Code Clinic 1 August 9th, 2007 03:19 PM
View HTML page in flash haaglin Flash (all versions) 1 January 4th, 2007 01:11 AM
View source of .aspx page not being displayed nitinp ASP.NET 2.0 Basics 5 November 7th, 2006 06:55 AM





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