Wednesday, June 18, 2008

Eliminate Double-Lines from Table Borders

<table border=1 bordercolor="black" style="border-collapse:collapse">
   <tr>
      <td>
         Something clever goes in here
      </td>
   </tr>
   <tr>
      <td>
         Something smart goes in here
      </td>
   </tr>
</table>

Something clever goes in here
Something smart goes in here

Wednesday, June 11, 2008

[dotnet] MCPD upgrade exams from MCSD

Kiaora Shane, The greatest piece of advice I received was: don’t do it!  Do the individual exams instead.  When I attempted the 70-551, I failed.  Ended up doing all 3 exams separately (70-536, 70-528, 70-547).  Greater coverage, greater understanding.  Unless you’re a genius.  For those of us of average intelligence, not a good choice.


From: dotnet@dot.net.nz [mailto:dotnet@dot.net.nz] On Behalf Of s ~
Sent: Tuesday, 10 June 2008 4:42 p.m.
To: dotnet@dot.net.nz
Subject: [dotnet] MCPD upgrade exams from MCSD

Fellas,

has anyone sat either of exams 70-553 or 70-554? If so, do you have any study material you can sell second hand, or can you point me towards some study material? There are guides and practice exams available for the other regular exams in the MCPD range, but there seems to be a scarcity of anything for the upgrade exams.

cheers

shane

Sunday, June 8, 2008

When 2 grids are linked

When you have:

  • a web page
  • 2 DataGridViews (parent/child relationship)
  • user wants to insert a new record into parent grid
  • parent grid has datasource set to Nothing so that EmptyDataTemplate shows
  • EmptyDataTemplate contains a DetailView
  • user fills in fields and clicks Insert
Then you get:
  • the parent record saves correctly; and
  • the page refreshes; but 
  • an error occurs because the child grid is linked to an empty Parent grid.
  • No amount of fiddling with the SelectedItem property of the Parent grid seems to work.

Resolution:

  • Hide the second grid until the user manually makes a selection on the Parent grid.