two different user controls in same asp.net page

this is my application link please download

i had 2 different user controls in one .aspx page.

first user control was dropdownlist binded with database. second user control was gridview.

if i select a company int the dropdownlist products of that company should be displayed in the second user control.

my problem was, when i am selecting the companies in the dropdownlist gridview user control is loading first and 2nd dropdownlist selected event is firing..

please help me...

Answers


You should probably check the IsPostBack property and only populate the controls if it isn't a postback.

void Page_Load()
{
  if (!IsPostBack)
  {
    // Populate the user controls.
  }
}

But since you didn't show any code I'm just guessing.


Need Your Help

Plot German Geographic data in Python using Json file

python json ipython

My iPython interface gives an error when I try ploting geographic CSV Data File using .JSON file.

Implementation of HTTP Live Streaming in iOS

iphone ios html5 video http-live-streaming

I want to write a little iOS video client and have to use HTTP Live Streaming. The videos come from a Wowza Media Server which supports HTTP Live Streaming, so the server-side implementation is not...