Name 'errorlabel' is not declared.

Results 1 to 2 of 2

Thread: Name 'errorlabel' is not declared.

  1. #1
    Join Date
    Dec 1969

    Default Name 'errorlabel' is not declared.

    Hi Guyz<BR>I"m building an application that interact with sqlDatabases,using a windows_authentication,I have a problem of declaring a errolabel ,where should I exaclty declare this in my &#060;body&#062; tags ,or inside the function,and what will be the format,<BR><BR>&#060;code&#062;<BR>try<BR>mydatagr id.datasource=DS.Tables("tStudents")<BR>mydatagrid .databind()<BR>catch ex as exception<BR>errorlabel.text=ex.message<BR>end try<BR><BR>&#060;/code&#062;<BR><BR><BR>thankx in advance<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Name 'errorlabel' is not declared.

    In your code behind...<BR><BR>Imports assemblytoimport<BR><BR>Public Class whatever<BR> Inherits System.Web.UI.Page<BR><BR>Protected WithEvents errorlabel As System.Web.UI.WebControls.Label

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts