2
Answers

asp:Label value not outputting

mcnamarakw

mcnamarakw

20y
2.2k
1
Hi, I have an issue where I am using Page_Load to write a value to a label on the aspx page and it appears that the first time I do it the value (in this case a url param value) is displaying correctly. After the first time, the page does not break, but the Label does not get populated wth the value any more. Any help on this would be hugely appreciated. Thank you, Kyle
Answers (2)
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
My mistake - it appears to work IF, and only if, the top control associated with the splitter is docked using the full docked property. Before I was trying with the bottom control using the full docked property. So in summary, it works if: topControl.Docked = DockStyles.Full; bottomControl.Docked = DockStyles.Bottom; I'm gonna submit some code for this one ;)
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
I got similar error in DataGrid docked in new form after reloading DataSource in DataGrid when new record count is bigger then older and resising form(!). Workaround: myDataGrid.Dock=DockStyle.Top; myForm.Show(); myDataGrid.Dock=DockStyle.Fill; May be any trick like this will be useful.
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
I haven't looked at this so I don't know if it's a bug or not, but if you are pretty sure it is you might want to add it to this site which has a list of some .NET bugs. Hopefully the guys at MS will check it out.