Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9323471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T04:21:10+00:00 2026-06-19T04:21:10+00:00

how exactly can I make control-events inside of a contenttemplate work? It’s annoying enough

  • 0

how exactly can I make control-events inside of a contenttemplate work? It’s annoying enough that I can’t access controls directly, but now the events don’t even fire for whatever reason? I’m starting to hate webprogamming…

Front:

<act:TabContainer ID="tcTabellen" runat="server" TabIndex="0" AutoPostBack="true">
        <act:TabPanel ID="tpBeitragssaetze" HeaderText="Beitragss&auml;tze" runat="server">
            <ContentTemplate>
                <p>
                    <asp:Label ID="lbKasse" runat="server">Kasse</asp:Label> 
                    <asp:DropDownList runat="server" ID="ddlKasse" AutoPostBack="true"></asp:DropDownList>
                    <asp:Label ID="lbJahr" runat="server">Jahr</asp:Label>
                    <asp:DropDownList runat="server" ID="ddlJahr" AutoPostBack="true"></asp:DropDownList>
                </p>
            </ContentTemplate>
        </act:TabPanel>
</act:TabContainer> 

Behind:

WithEvents ddlKasse As DropDownList
WithEvents ddlJahr As DropDownList

Private Sub ddlKasse_DataBind()
        ddlKasse = CType(Me.tcTabellen.FindControl("tpBeitragssaetze").FindControl("ddlKasse"), DropDownList)
        ddlKasse.AutoPostBack = True

        ddlKasse.Items.Clear()

        ddlKasse.Items.Insert(0, New ListItem With {.Text = "Bitte auswählen ...", .Value = "0"})
        ddlKasse.Items.Insert(1, New ListItem With {.Text = "01 - BKK Höchst (W)", .Value = "01"})
        ddlKasse.Items.Insert(2, New ListItem With {.Text = "02 - BKK Höchst (O)", .Value = "02"})
        ddlKasse.Items.Insert(3, New ListItem With {.Text = "10 - BKK Gesundheit (Alt) (W)", .Value = "10"})
        ddlKasse.Items.Insert(4, New ListItem With {.Text = "13 - Sancura BKK (W)", .Value = "13"})
        ddlKasse.Items.Insert(5, New ListItem With {.Text = "21 - DKV (W)", .Value = "21"})
        ddlKasse.Items.Insert(6, New ListItem With {.Text = "22 - DKV (O)", .Value = "22"})
        ddlKasse.Items.Insert(7, New ListItem With {.Text = "32 - BKK Vita-Dyckerhoff (W)", .Value = "32"})
        ddlKasse.Items.Insert(8, New ListItem With {.Text = "34 - BKK Gesundheit (W)", .Value = "34"})
        ddlKasse.Items.Insert(9, New ListItem With {.Text = "35 - BKK Gesundheit (O)", .Value = "35"})
        ddlKasse.Items.Insert(10, New ListItem With {.Text = "56 - STJB (W)", .Value = "56"})
        ddlKasse.Items.Insert(11, New ListItem With {.Text = "69 - BKK Bodensee + Südwest (W)", .Value = "69"})
        ddlKasse.Items.Insert(12, New ListItem With {.Text = "71 - STJB (O)", .Value = "71"})
        ddlKasse.Items.Insert(13, New ListItem With {.Text = "82 - BKK Vita Dyckerhoff (O)", .Value = "82"})
        ddlKasse.Items.Insert(14, New ListItem With {.Text = "83 - BKK Gesundheit (Alt) (O)", .Value = "83"})
        ddlKasse.Items.Insert(15, New ListItem With {.Text = "84 - Sankura BKK (O)", .Value = "84"})
        ddlKasse.Items.Insert(16, New ListItem With {.Text = "93 - BKK FPB Holding (W)", .Value = "93"})
    End Sub

Private Sub ddlKasse_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlKasse.SelectedIndexChanged
        ddlJahr_DataBind()
End Sub

I just want one ddl to be filled if the selectedindex of another one changes, but as I mentioned before .. the event doesn’t fire.
Does anybody have a clue what it is like that and how I can fix it?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T04:21:11+00:00Added an answer on June 19, 2026 at 4:21 am

    Your ddl needs the onselectedindexchanged on its tag:

    <asp:DropDownList runat="server" ID="ddlKasse" onselectedindexchanged="ddlKasse_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I'd like to make the WPF DataGrid control layout its columns exactly the
if someone had a web-service but did not set header Allow-Access-Control-Origin:* Then how exactly
I want to make a Python script to control VLC. VLC can be controlled
When I first load data into a Silverlight DataGrid control, how can I make
I have a search usercontrol that I'd like to make generic. The control itself
I'm trying to make a control where you can paint something on image and
I know why I want to use private virtual functions, but how exactly can
how exactly I can use public methods (non-virtual) with NHibernate? I have this code:
I am wondering how exactly I can convert a location (X Y Z) to
Possible Duplicate: JavaScript: formatting number with exactly two decimals Can some one please help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.