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

  • Home
  • SEARCH
  • 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 5942377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:14:41+00:00 2026-05-22T16:14:41+00:00

ASP.Net 3.5 through C# in Visual Studio 2008. Simple enough problem i think but

  • 0

ASP.Net 3.5 through C# in Visual Studio 2008.

Simple enough problem i think but I can’t find a solution to it online. I’ve a dropdownlist that was successfully posting back using the autopostback. I styled it using this jquery styler:
Selectbox Style

and since then it no longer posts back. This appears to be because Jquery is altering the code to facilitate the styling, which is fine, I just need to find a way to trigger the selectedindexchange event, or make jquery update the select box when someone changes the selection in the styled ‘version’ of the dropdownlist.

Any ideas?

This is the code Jquery produces:

<div class="test" sb="14935647" style="display: none;">
<select id="ctl00_Body_ucSets_rptSelections_ctl00_ddlAttributeSelection" class="dropdown" onchange="javascript:setTimeout('__doPostBack(\'ctl00$Body$ucSets$rptSelections$ctl00$ddlAttributeSelection\',\'\')', 0)" name="ctl00$Body$ucSets$rptSelections$ctl00$ddlAttributeSelection">
<option value="-1" selected="selected">Change Colour</option>
<option value="14">Red</option>
<option value="21">Black</option>
<option value="22">Pink</option>
<option value="23">Green</option>
</select>
</div>
<div id="sbHolder_14935647" class="sbHolder">
</div>

While this is what my actual C# code is:

<div class="test">
<asp:DropDownList ID="ddlAttributeSelection" runat="server" CssClass="dropdown"
             OnSelectedIndexChanged="ddlAttributeSelection_selectedIndexChanged"
                AutoPostBack="true" AppendDataBoundItems="true">
            </asp:DropDownList>
</div>
  • 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-22T16:14:42+00:00Added an answer on May 22, 2026 at 4:14 pm

    It will not post back because what you are seeing on screen is not your DropDownList. If you inspect your DOM you will see that the jQuery has turned your DropDownList into an unordered list ( <ul> ) with many list elements ( <li> )

    Edit

    From looking at the jQuery, there is an event which you can use onchange which you will need to use to then call your OnSelectedIndexChanged through javascript

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

Sidebar

Related Questions

I have developed a web application in asp.net in visual studio 2008. Its working
i am using the visual studio for asp.net and it's create a problem that
I have a basic ASP.Net project created in Visual Studio 2008 on Windows Server
I'm debugging a asp.net website in visual studio 2008. When I visit the website
In my Visual Studio 2008 ASP.NET web page codebehind, I am calling an add routine in
I am starting a project with asp.net visual studio 2008 / SQL 2000 (2005
I have an ASP.net website running on my computer through Visual Studio 2010. localhost:14587/site/login.aspx
I'm coding in ASP.Net on a local machine through visual studio. So when I
Can I setup a custom MIME type through ASP.NET or some .NET code? I
I tried to use this tutorial http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=45 I load it in my visual studio

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.