Solved

getting controls from CreateUserWizard control using javascript

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now