Sorry. The title of the post could be miesleading, but that's what I
did exactly.
int nStartRow = (currentPage * dgTest.PageSize) + 1;
int nEndRow = nStartRow + dgTest.PageSize - 1;
Both nStartRow and nEndRow spit out value correctly as int data type,
but as soon as adding .ToString() method to each, I get the error
saying "nStartRow.ToString() does not exist". or "nStartRow.ToString()
does not exist".
When I view in "Watch" panel in VS.Net.
On error message on the brpwser tells me :
"Exception Details: Exception of type System.Web.HttpUnhandledException
was thrown.
Exception Details: Exception of type System.Web.HttpUnhandledException
was thrown.
Object reference not set to an instance of an object."