Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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
  #1 (permalink)  
Old January 16th, 2006, 11:11 PM
Authorized User
 
Join Date: Sep 2003
Location: Melbourne, Victoria, Australia.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two questions Pls Help


I want the drop down box to react when a selection is made without using a submit button as shown below

<form method="get" action= "<%= strURL %>">
  <select name="col_name">
    <option>--Select Search--</option>
    <option>Livery</option>
    <option>Chassis</option>
    <option>Body</option>
  </select>
  <input type="submit" value="Click Here to Continue" />
  </form>

Is this possible please ??


My second question is date formating, I have

Session.LCID = 2057 'Sets locale to UK.

and my line of code is

<td><%= rstSearch.Fields("date").value %></td>

which works fine showing for example 1/12/1999

But in Access I have it formatted to show Dec-1999

So how can I get my screeen write to do the same in ASP please

Thanks

Topshed
Reply With Quote
  #2 (permalink)  
Old January 16th, 2006, 11:26 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

;;;I want the drop down box to react when a selection...
Do you mean drop down box to submit?

If so:

;;;Is this possible please ??
Yes, use an onChange submit event inside your <select> tag:
<SELECT NAME='comboOne' SIZE='1' onChange="uformName.submit();">

FYI: You may find the following post helpful:
http://p2p.wrox.com/topic.asp?TOPIC_ID=38301


;;;So how can I get my screeen write to do the same in ASP please:
--------------cut n paste------------------
<%
 dVal = "1/12/1999"
 response.write MonthName(month(cDate(dVal)),true) & "-" & DatePart("yyyy", cDate(dVal))
%>
---------------------------------------------

Wind is your friend
Matt
Reply With Quote
  #3 (permalink)  
Old January 17th, 2006, 02:07 AM
Authorized User
 
Join Date: Sep 2003
Location: Melbourne, Victoria, Australia.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Mat

Sorry I am not with you quite ...

The three options I need are in fact column headers in my DB and what I am using are static options for my select
If I can use your code to find my column headers then fine, either way I need some more help

Regards

Topshed
Reply With Quote
  #4 (permalink)  
Old January 17th, 2006, 02:18 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

when I write ;;;; I am quoting you, the next line is my answer.

You asked two questions, I gave you two answers - what part of that do you not follow?

I asked you one and you failed to answer it, why is this. The reason I asked related to your solution.

Now I dont follow you - what, you are asking different questions now? What about your originals? mmmm. lots of questions this time and its almost home time for me.

Wind is your friend
Matt
Reply With Quote
  #5 (permalink)  
Old January 17th, 2006, 04:00 AM
Authorized User
 
Join Date: Sep 2003
Location: Melbourne, Victoria, Australia.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry bout that

The Date thing works fine Thankyou
 to reprise the first question:-....
I want the drop down box to react when a selection is made without using a submit button as shown below

<form method="get" action= "<%= strURL %>">
  <select name="col_name">
    <option>-Select column Headers-</option>
    <option>Livery</option>
    <option>Chassis</option>
    <option>Body</option>
  </select>
  <input type="submit" value="Click Here to Continue" />
  </form>

Your excellant answer does not work for me because I want column headers (See above )
for my options unless there is a way to use your code With Column Headers
Reply With Quote
  #6 (permalink)  
Old January 17th, 2006, 06:40 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

Dont be sorry. This place is where I come for help and to help others. I get turned off a post very quickly if I sense the person hasnt read my reply or falied to answer specific questions.

;;I want the drop down box to react
define react (the very first line of my very first post asked this)

Wind is your friend
Matt
Reply With Quote
  #7 (permalink)  
Old January 18th, 2006, 01:09 AM
Authorized User
 
Join Date: Sep 2003
Location: Melbourne, Victoria, Australia.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When a user makes a selection from the Static drop down below

<form method="post" action= "<%= strURL %>">
  <select name="col_name">
    <option>-Select column Header-</option>
    <option>Livery</option>
    <option>Chassis</option>
    <option>Body</option>
  </select>
  <input type="submit" value="Continue" />
  </form>

I want my script to continue to the selection without them having to use the "Continue" Button
The same way as this forum jumps to the page number once selected at the bottom right of the messages

You showed me a dynamic way of doing this, but I cannot do it for this particular application dynamically because it is looking at column Headers, unless you know better

Thanx for your patience

Topshed
Reply With Quote
  #8 (permalink)  
Old January 29th, 2006, 05:51 PM
Authorized User
 
Join Date: Sep 2003
Location: Melbourne, Victoria, Australia.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem sorted Thank you
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
.NET Interview Questions, C# Interview Questions, dotnetuncle .NET Framework 2.0 4 June 22nd, 2019 07:03 AM
help pls.. heera BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 October 20th, 2007 05:25 PM
Pls!!! I need your Help!!! Ariel ASP.NET 1.x and 2.0 Application Design 15 October 13th, 2005 08:08 AM
Pls help me!! hoailing22 ASP.NET 1.0 and 1.1 Basics 4 June 10th, 2005 11:24 PM
Hi pls help me ?? ravirpandey Forum and Wrox.com Feedback 4 July 17th, 2004 11:12 PM



All times are GMT -4. The time now is 11:54 PM.


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