I've created a Visual WebPart in 2010 with two buttons.
One works as it should (it updates a database and puts a success string in a label) with no problems
One gets a dataset and populates some labels and textboxes (using a Page.DataBind).
With this button, I need to click it twice (not exactly a double click) - once, let it post back and then click again
If I copy the exact markup and code to a test ASPX project, it all works perfectly as it should.
I've tried both a DataSet and a DataReader - code to populate controls is like the following:
Then, after all, I follow by a Page.DataBind
lblSerialNumber.Text = myReader["Serial Number"].ToString();
Does anyone know what could cause this?
View Complete Post