Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To 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
Old February 14th, 2006, 12:46 AM
Friend of Wrox
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default Drop Down List Property Ques

I am using Javascript to dynamically populate the second drop down list. But after the second drop down list gets selected and the Search button is pressed, ASPX handles the Search request.

The problem is, when I populate the DDL I use :
Form1.ddl.options(Counter).text = xmldoc.getElementsByTagName('Name').item(Counter). firstChild.data;
Form1.ddl.options(Counter).value = xmldoc.getElementsByTagName('ID').item(Counter).fi rstChild.data;

But in ASPX (Code Behind), ddl property ddl.option.text and
ddl.option.text doesn't exist. ddl.DataTextField and ddl.DataValueField are available in the Code Behind.

So how can I get the text and value loaded by Javascript into the DDL from Code Behind where only DataTextField and DataValueField are available?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down list carumuga Classic ASP Basics 1 February 6th, 2007 02:37 PM
drop down list values based on another drop down noor ASP.NET 1.0 and 1.1 Basics 3 July 5th, 2005 09:57 AM
Drop Down List Beginner123 VB How-To 2 March 7th, 2005 01:56 PM
Drop Down List mrideout BOOK: Beginning ASP.NET 1.0 8 September 16th, 2004 07:11 AM

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