J
jack
I have created webform controls by following steps from one of the
site.
but when im placing the control on the form im getting below compiler
error
im not able to get what is this and tried a lot on net
Please help me as im not able to get a hand on it
This is the result that i get on the browser .
----------------------------------------------------
Compiler Error Message: CS0234: The type or namespace name 'Global'
does not exist in the class or namespace 'System.Web.UI.UserControl'
(are you missing an assembly reference?)
WebUserControl1.ascx
----------------------------------------------------
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.cs"
Inherits="UserControl.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="links"
Src="WebUserControl1.ascx" %>
<P>
Hello World!!!
</P>
webform1.aspx
----------------------------------------------------
<form id="Form1" method="post" runat="server">
<uc1:WebUserControl1 id="WebUserControl11"
runat="server"></uc1:WebUserControl1>
</form>
Thanks for replying me
site.
but when im placing the control on the form im getting below compiler
error
im not able to get what is this and tried a lot on net
Please help me as im not able to get a hand on it
This is the result that i get on the browser .
----------------------------------------------------
Compiler Error Message: CS0234: The type or namespace name 'Global'
does not exist in the class or namespace 'System.Web.UI.UserControl'
(are you missing an assembly reference?)
WebUserControl1.ascx
----------------------------------------------------
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="WebUserControl1.ascx.cs"
Inherits="UserControl.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="links"
Src="WebUserControl1.ascx" %>
<P>
Hello World!!!
</P>
webform1.aspx
----------------------------------------------------
<form id="Form1" method="post" runat="server">
<uc1:WebUserControl1 id="WebUserControl11"
runat="server"></uc1:WebUserControl1>
</form>
Thanks for replying me