Solved

getting controls from CreateUserWizard control using javascript

Posted on 2006-07-10
2
523 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 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