I have a label on master page and need to parse the value of the label onto another page. I have set a public property for the label on the master page and I have also defined the virtual-path of the master page on the other page but i get the error "BC30002 type myprojectname.site1.master is not difined". Please any help? below is my code
//this is the codebehind of my mastser page
Public Property userid As Label
Get
userid = Me.lbluserid()
Return userid
End Get
Set(value As Label)
userid.Text.ToString()
End Set
End Property
//this is my content page
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="proudctselection.aspx.vb"
MasterPageFile="~/Site1master.Master" Inherits="RANAMART.proudctselection" %>
<%@ MasterType VirtualPath="~/Site1master.Master" %>
<asp:Content ID="rannamart" ContentPlaceHolderID="rannamart" runat="server">
//somthing goes here
</asp:Content>