I create a empty web application by vs2010 ,and add web usercontrol into it ,and here is code
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs"
Inherits="WebApplication1.WebUserControl1" ClassName="defined" %>
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
and i create other web apllication abd reference webapplication1 and use web usercontrol
here is code:
<%@ Register Assembly="WebApplication1" Namespace="WebApplication1" TagPrefix="e12" %>
<e12:WebUserControl1 runat="server" ID="gsadgas" />
but when i view the page in broswer , i found linkbutton is missing ,and i debug it , it says linkbutton is null , object not set to instance , why ? somebody who did this, please tell me how to do it . thank you very much , it make me very pain serval days, if you know ,please please tell me...thank you very much