Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-21-2005, 07:31 AM   #1 (permalink)
fabbasey
Recruit
 
Join Date: Mar 2005
Posts: 10
fabbasey is on a distinguished road
Unhappy Dropdown option

Hi,
In VB once we select an option from dropdown menu, we can use function OnChange. Do we have any thing like this in ASP.
Once we select an option from dropdown it will give response right away. No need to submit page.
Please Help!!!!!!
fabbasey is offline   Reply With Quote
Old 03-21-2005, 08:39 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
ASP runs your script server-side, .. so unfortunately the answer is no.
__________________
Mike
sde is offline   Reply With Quote
Old 03-29-2005, 06:08 AM   #3 (permalink)
Mazzman
Registered User
 
Join Date: Mar 2005
Posts: 7
Mazzman is on a distinguished road
possible solution...html onchange property

You could use Javascript arrays to store addtional data on the client side(browser), and then use these arrays to repolulate your downdown list by using its onchange proprty(assuming thats what u wanted to do ). This would eliminate you needing to go back to the server.

or maybe a better solution....


HTML dropdown options have an onchange proprty. you would need to use Javascript to use this event and then perform a submit on that web page. Once you have submittied to the server can then do what ever processing you need and return the html page you desire.

I have used this technique in the past when I have had a 3 or 4 option list that I wanted repopulate with differnet choices based on a values in another dropdown.

Hope this helps
Mazzman is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Dropdown & Triggering Results jjfletch PHP 0 08-20-2004 05:27 PM
Dropdown list in HTML JoeyJoeJo HTML, XML, Javascript, AJAX 8 02-26-2003 11:00 AM
GeForce 4 w00t Lounge 5 01-26-2003 08:10 PM


All times are GMT -8. The time now is 11:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting