Link to home
Start Free TrialLog in
Avatar of CharlieDev
CharlieDevFlag for United Kingdom of Great Britain and Northern Ireland

asked on

c# ,asp.net- master pages with web user controls, how to link to web user control

Hi,
I am using master pages and also web user controls, how do I link a web user control on an aspx page when I am also linking in a master page?

I get an error when i link the aspx.cs and master page first and then the web user control as shown below :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClientView.aspx.cs" Inherits="ClientView" MasterPageFile="~/_standardPage.master" %>

<%@ Register TagPrefix="ClientViewTableControl" TagName="ClientViewTable" src="ClientViewTableControl.ascx"%>

Can someone show me how to reference the web user control please?
Thanks
Avatar of nmarun
nmarun
Flag of India image

Here's my understanding of your problem:

You want to be able to read members/controls located on the master page and/or on the aspx page.

Is this right?
ASKER CERTIFIED SOLUTION
Avatar of siancell
siancell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Salim Fayad
Salim Fayad
Flag of Lebanon image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And I don't think there is a problem in your user control.
Avatar of CharlieDev

ASKER

Thanks