Solved

getting controls from CreateUserWizard control using javascript

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

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‚Ķ
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

828 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