Solved

getting controls from CreateUserWizard control using javascript

Posted on 2006-07-10
2
526 Views
Last Modified: 2013-11-19
I have a CreateUserWizard on my form. There is a dropdown listbox and a textbox within the control. I want the textbox to become enabled when the user selects something from the dropbox and disabled when nothing is selected. I'm trying to write some javascript to do the client-side scripting but it seems difficult to get down to the controls that are within the CreateUserControl

I've found that I can gain access to them by CreateUserWizard1.CreateUserStep.ContentTemplateContainer.Controls() in the c# code but I cant figure out how to get to the field thru javascript? I can't use document.getElementbyID(). Any suggestions or alternate/easier wasy to go about this.
0
Comment
Question by:mbosico
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
RainMan82 earned 125 total points
ID: 17074871
run the page and go to your internet explorer and select view source....you can do a find text search in there for part of the controls name.  This will show you what the control is being called.  Then you should be able to access it via javascript once you know its name....

example:

var x = document.form1.CONTROLNAME;

alert(x.value);
0
 

Author Comment

by:mbosico
ID: 17080743
great, thanks
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question