Chapter 6 Comment and Question
Comment: Interesting how a lot of the style elements of the asp controls render properly in IE but not Firefox. For example, the backcolor and forecolor attributes of the asp:label and asp:button. Trivial but not really...
Also interesting how the DataGrid does not persist in Firefox if the user triggers an error on the Comments text box that raises the RequiredFieldValidator. Not trivial at all and really should be addressed by Mickeysoft.
Haven't done any testing in Opera, Safari, or Netscape 8 (I wonder what differences there are with Firefox 1.0.7) But multi-browser, multi-platform support is certainly important when it comes to web development tools.
UPDATE: Looks like it has something to do with browser caching. If you don't wrap the call to the FillDataGrid sub in an if not ispostback then it works just fine. Presumably there's a way to test for browser/version in asp like there is in other languages. Guess you can tell I'm an asp novice now...but then this is a "Beginning" book...
Question re Chapter 6: DG_Insert.aspx: the Command Builder object is created in the Page_Load sub procedure. What is the scope of this object? Or maybe, more precisely, what is the scope of the Page_Load sub procedure in which it's created? Why is it available to other sub procedures if it's not declared public?
|