Basically, I have this webpage that is the header on any page you go to. One of the elements in this header is a drop down list that is populated with customer names. On one of these pages there are text fields that need to update with new data depending on if the user selects a different customer from the drop down list in the header. However, since I am pretty new to web-based programming, I’m not sure what code to put in the header that will make the main page below it reload when the drop down list index is changed. Also, the language this is all in is asp.net and C#
Share
ASP .NET has built in facility to handle this called Master Pages. I’m not sure how you are including your header file now, but with ASP .NET 2.0 Master pages are the way to go.
Take a look here to learn how to implement master pages in your web site. Once you have added a master page you can pass data from the master page to the content page via events.
This article explains how to use events to pass data between content and master pages and vice versa. The example even uses a drop down list.