Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Class vs SP Pin
ToddHileHoffer9-Oct-07 7:04
ToddHileHoffer9-Oct-07 7:04 
QuestionSQL Query Translation. Pin
Saksida Bojan9-Oct-07 5:37
Saksida Bojan9-Oct-07 5:37 
AnswerRe: SQL Query Translation. Pin
il_masacratore9-Oct-07 21:47
il_masacratore9-Oct-07 21:47 
Questionjavascript datetime dynamically (ASP.Net) Pin
veluCovansys9-Oct-07 5:31
veluCovansys9-Oct-07 5:31 
AnswerRe: javascript datetime dynamically (ASP.Net) Pin
ToddHileHoffer9-Oct-07 7:05
ToddHileHoffer9-Oct-07 7:05 
QuestionDataset on Immediate window Pin
ss.mmm9-Oct-07 5:30
ss.mmm9-Oct-07 5:30 
AnswerRe: Dataset on Immediate window Pin
Paddy Boyd9-Oct-07 5:38
Paddy Boyd9-Oct-07 5:38 
QuestionPopulating a drop down list Pin
Brendan Vogt9-Oct-07 3:50
Brendan Vogt9-Oct-07 3:50 
Hi,

I have a drop down list in a:

<asp:CreateUserWizardStep ID="CreateUserStep1" runat="server">

<ContentTemplate>

<asp:DropDownList ID="ddlTitles" runat="server" />

I need to populate this drop down list. I am having some issues because normally I would do it like:

private void BindTitles()
{
ddlTitles.DataSource = Title.GetAllTitles();
ddlTitles.DataValueField = "ID";
ddlTitles.DataTextField = "Name";
ddlTitles.DataBind();

// Insert a "None" choice
ddlTitles.Items.Insert(0, new ListItem("None", String.Empty));
}

But because it is in <ContentTemplate> I need to find the control, something like CreateUserStep1.ContentTemplateContainer.FindControl("ddlTitles")... But I do not know how to populate it. In BindTitles() I changed it to create a drop down list control and populated this control the samwe way, but I need to assign this control to ddlTitles. I don't know how to do this.

Please can someone help me??

Thanks
AnswerRe: Populating a drop down list Pin
Eduard Keilholz9-Oct-07 4:38
Eduard Keilholz9-Oct-07 4:38 
GeneralRe: Populating a drop down list Pin
Brendan Vogt9-Oct-07 5:28
Brendan Vogt9-Oct-07 5:28 
QuestionHow do I stop the response object from renaming files? Pin
Al Ortega9-Oct-07 3:33
Al Ortega9-Oct-07 3:33 
AnswerRe: How do I stop the response object from renaming files? Pin
Paddy Boyd9-Oct-07 5:24
Paddy Boyd9-Oct-07 5:24 
GeneralRe: How do I stop the response object from renaming files? Pin
Al Ortega9-Oct-07 5:52
Al Ortega9-Oct-07 5:52 
QuestionGridview DropDownlist Pin
ss.mmm9-Oct-07 3:27
ss.mmm9-Oct-07 3:27 
AnswerRe: Gridview DropDownlist Pin
John Gathogo9-Oct-07 4:20
John Gathogo9-Oct-07 4:20 
GeneralRe: Gridview DropDownlist Pin
ss.mmm9-Oct-07 4:49
ss.mmm9-Oct-07 4:49 
GeneralRe: Gridview DropDownlist Pin
John Gathogo9-Oct-07 6:39
John Gathogo9-Oct-07 6:39 
QuestionASP.NET application performance issue Pin
Mukesh Kumar Gupta9-Oct-07 3:12
Mukesh Kumar Gupta9-Oct-07 3:12 
AnswerRe: ASP.NET application performance issue Pin
Saksida Bojan9-Oct-07 4:55
Saksida Bojan9-Oct-07 4:55 
AnswerRe: ASP.NET application performance issue Pin
Not Active9-Oct-07 4:56
mentorNot Active9-Oct-07 4:56 
QuestionHow to get list of Virtual Directories in IIS7? Pin
NanaAM9-Oct-07 2:31
NanaAM9-Oct-07 2:31 
QuestionCant run my aspx pages Pin
matjame9-Oct-07 2:04
matjame9-Oct-07 2:04 
AnswerRe: Cant run my aspx pages Pin
Paddy Boyd9-Oct-07 2:32
Paddy Boyd9-Oct-07 2:32 
GeneralRe: Cant run my aspx pages Pin
matjame9-Oct-07 2:43
matjame9-Oct-07 2:43 
AnswerRe: Cant run my aspx pages Pin
Spunky Coder9-Oct-07 2:34
Spunky Coder9-Oct-07 2:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.