New Message on dotNET User Group Hyd

Duplicate definition of Variables

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: Didlo1

Hi Friends,
I have decalred my control vaiables in a base class and written some event on it.the i have some othere drived class and finally i am inheriting these calss in my child class which (UI) layer.I have created the public propery of there variables in my UI and accessing and assiging data through these property.But i am facing one problem when i am opening my UI form VS creates the duplicate definition in my code behind page.I don't know why it is happening.I will just show you the code snippet.
 
Base Class
*****************
Protected ConnectionString As String = ConfigurationSettings.AppSettings("ConnectionString")
       
        Protected _UrlReferrer As TextBox
        Protected _PageTitle As Label
        Protected WithEvents _ErrorValidator As CustomValidator
        Public _ErrorSummary As ValidationSummary
        Protected WithEvents _Search As HtmlInputButton
        Protected _SortBy As TextBox
        Protected WithEvents _Grid As DataGrid
Next Class
****************
Public Class EditForm
        Inherits BaseForm
  Protected WithEvents _Insert As HtmlInputButton
        Protected WithEvents _Update As HtmlInputButton
        Protected WithEvents _Delete As HtmlInputButton
        Protected WithEvents Cancel As HtmlInputButton
UI Layer
***********
 Public Class EmployeeMaster
        Inherits EditForm
Public Property Insert() As HtmlInputButton
            Set(ByVal value As HtmlInputButton)
                MyBase._Insert = value
            End Set
            Get
                Return MyBase._Insert
            End Get
        End Property
Public Property Grid() As DataGrid
            Set(ByVal value As DataGrid)
                MyBase._Grid = value
            End Set
            Get
                Return MyBase._Grid
            End Get
        End Property
 
like this but in UI it is creating the duplicate definition of control varabiles defined in base class.
 
thanks
sandeep

View other groups in this category.

Click here
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to