force SelectedIndexChanged event

Posted on 2006-05-31
Medium Priority
Last Modified: 2012-08-13
I have a dropdown list that has a SelectedIndexChanged event to populate another dropdownlist. This works fine except for the initial page load. Apparently the SelectedIndexChanged does not fire when the first dropdownlist is populated (via SQL).

Is there a way to force this event in code? The Sub has (sender As Object, e As EventArgs) and I don't know how to code it to fire.

Thanks for the help.
Question by:mfony
LVL 18

Accepted Solution

deighton earned 172 total points
ID: 16798425
DropDownList1_SelectedIndexChanged(DropDownList1, New System.EventArgs)
LVL 28

Assisted Solution

strickdd earned 164 total points
ID: 16798474
create a function to call from your SelectedIndexChanged function. Then you can call this same function on page_load when after you populate the DropDownList1

Assisted Solution

shivam2k earned 164 total points
ID: 16799917
make sure that u have set AutoPostBack property of the drop down to true

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month16 days, 23 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question