Posts

Showing posts from September, 2014

Unable to Write to Pdb in Visual Studio

It started giving me an error after updating the project from SVN.  The real issue turned out to be that there was missing files. The fix for me was to close an re open project and locate the files that were missing.  The files had actually been deleted, but that was not what visual studio was giving me. http://stackoverflow.com/questions/627523/unable-to-create-pdb-file

The name 'ViewState' Does Not Exist in the Current Context

Say you have something like ViewState("AccountID") in a c# page when trying to use Viewstate.  It will give the error "The name 'ViewState' Does Not Exist in the Current Context".  What is incorrect about the code is you should be using "ViewState["name"]".  Encountered that error from a page conversion to C#.

Vb.NET Has Two Division Operators

There was also a bug with the number of blocks, apparently there are two different division operators in vb / and \, the first is a float division that rounds and the other is integer division.  So I was getting unusual results sometimes, like 16/10 = 2, when I wanted 16\10=1.  http://stackoverflow.com/questions/6013626/vb-net-vs-c-sharp-integer-division?rq=1

System.NotSupportedException

{"Callbacks are not supported on CommandField when the select button is enabled because other controls on your page that are dependent on the selected value of 'grd1' for their rendering will not update in a callback.  Turn callbacks off on 'grd1'."} This error tells you straight up what to do.  Set EnableSortingAndPagingCallbacks to False on the datagrid.