473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP.NET 2.0 Dropdownlist will not post back

We have converted our ASP.NET v1.0 to v1.1, and up to v2.0.

We have a DropDownList in the v1.0 code successfully posting back. Now
that the code has been converted into v2.0 we do not get the postback
to fire.

The line in the aspx is listed below:
<asp:dropdownlist id="glFSClassification" runat="server" Font-Size="8"
Width="200" AutoPostBack="True" Enabled="true"
Font-Name="Verdana"></asp:dropdownlist>

Behavior properties are set below
AppendDataBoundItems = False
AutoPostBack = True
CausesValidation = False
Enabled = True
enableTheming = True
EnableViewState = True
Visible = true

We populate this DropDownList dynamically via code behind.

I'm stumped. Any feedback would be greatly appreciated.

Robert.

Apr 13 '06 #1
1 1399
Are you using VB or C#? I've noticed on one of my projects that was in VB,
that the events weren't being connected properly; the autoeventwireup was
false in the markup for some reason, and the event declaration was missing
the Handles.??? part in the codebehind

HTH,
Trevor B

<rm********@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
We have converted our ASP.NET v1.0 to v1.1, and up to v2.0.

We have a DropDownList in the v1.0 code successfully posting back. Now
that the code has been converted into v2.0 we do not get the postback
to fire.

The line in the aspx is listed below:
<asp:dropdownlist id="glFSClassification" runat="server" Font-Size="8"
Width="200" AutoPostBack="True" Enabled="true"
Font-Name="Verdana"></asp:dropdownlist>

Behavior properties are set below
AppendDataBoundItems = False
AutoPostBack = True
CausesValidation = False
Enabled = True
enableTheming = True
EnableViewState = True
Visible = true

We populate this DropDownList dynamically via code behind.

I'm stumped. Any feedback would be greatly appreciated.

Robert.

Apr 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brennon Arnold | last post by:
I have a problem that I figured would be relatively common, but have been unable to find any information on it as of yet. I have a page that contains two DropDownList controls, with the second...
4
by: DotNetJunky | last post by:
I have built a control that runs an on-line help system. Depending on the category you selected via dropdownlist, it goes out and gets the child subcategories, and if there are any, adds a new...
4
by: theo | last post by:
Program flow...load file,then extract the xml text tags from the file,then the number of Xml tags retrieved from the file determines the number of dropdownlist controls instanciated in the...
6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
0
by: jonathanyan | last post by:
Hi all: I am dynamically creating two dropdownlist controls in a user control, the data of the second dropdownlist control depends on the selected value of the first dropdownlist control, the...
4
by: Mark Waser | last post by:
I've discovered a very odd bug when attempting to put a dropdown list in a datagrid. In the page PreRender step, the selected index of the datagrid is successfully set during databinding. Yet,...
11
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
7
by: AG | last post by:
Hi, ASP.NET 2.0 web app I have a GridView utilizing template columns and bound to an objectdatasource. In the edit template of one column there is a dropdownlist bound to another...
18
by: Redhairs | last post by:
Is it possible to get DropDownList.SelectedValue in Page_PreInit() event during the postback?
1
by: Brett | last post by:
I have a DropDownList in an ASP.NET web form that is populated with items from a lookup table by binding that DropDownList to a SqlDataSource. However, the items in the lookup table can change over...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.