Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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.

Reply With Quote
  #23 (permalink)  
Old June 21st, 2007, 01:05 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #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

Reply With Quote
  #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
Reply With Quote
  #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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.