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 7432153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:24:43+00:00 2026-05-29T09:24:43+00:00

I have an asp.net dropdown like this <asp:DropDownList width=95% ID=RessourceComposantes runat=server DataSourceID=Composantes DataTextField=Description DataValueField=ComposanteID>

  • 0

I have an asp.net dropdown like this

 <asp:DropDownList width="95%" ID="RessourceComposantes" runat="server"    
       DataSourceID="Composantes" 
       DataTextField="Description" DataValueField="ComposanteID">
 </asp:DropDownList>

<asp:SqlDataSource ID="RessourceComposantes" runat="server" 
        ConnectionString="<%$ ConnectionStrings:OraEntities %>" 
        SelectCommand="SELECT [Blabla], [blablabla] FROM [blablablaa] 
        ORDER BY [blablablabla]">
</asp:SqlDataSource>

Is it normal that when I do dd_ressource_composante.selectedvalue on the server side I have no value. It’s always “”.

the source looks like this :

     <select name="ctl00$Tab$dd_ressource_composante" id="ctl00_Tab_dd_ressource_composante" style="width:95%;">
        <option value="1">Composante</option>
        <option value="3">DGAG</option>
        <option value="2">DSF</option>
        <option value="5">Test</option>
        <option value="6">Tous</option>

        <option value="4">VMD</option>

    </select>

I just tried to fill my dropdown in vb.net and I have the same result. The dropdown is full but when I do a postback I have no selected value

Actualy on the server side when I put a breakpoint on the dropdown, the item count is 0. I don’t understand why… It’s like the 8th dropdown list in this project and everything is the same but this one doesn’t work.

I don’t do any binding on the page load. it’s all in the aspx file

well it works ONLY when I add autopostback=”true” SelectedIndexChanged=”dd_ressource_composante_SelectedIndexChanged” for the dropdown.

And theres no code in dd_ressource_composante_SelectedIndexChanged

It’s vb.net for the server side

Thank you

  • 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-05-29T09:24:44+00:00Added an answer on May 29, 2026 at 9:24 am

    Well that’s weird. That control was in a table and I added a row like this

    tblRessourcesProjet.Rows.Insert(1, tr)
    

    and I changed it for

    tblRessourcesProjet.Rows.Add(tr)
    

    I don’t understand quite well why it was a problem but it works now.
    Thank you everyone!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dropdownlist in my asp.net MVC2 view like this: <% using(Html.BeginForm(temp,Settings)){ %>
I have a Razor view in my asp.net MVC3 application with a dropdownlist like
I have asp.net form that contains fields. When I access this window, my javascript
I have ASP.Net code similar to the following (this is inside a FIELDSET): <ol>
I have asp.net TextBox with ontextchanged event this is search text box in my
So I have ASP.NET running on the server in IIS7. I think I'm going
I have a web form with a dropdown list <asp:dropdownlist> , but for the
I am using asp.net mvc 2.0(default binding model) and I have this problem. I
I have a asp.net 2.0 web site with numerous asp:DropDownList controls. The DropDownList control
I have an ASP.NET page with a drop down (asp:DropDownList) control. I also have

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.