I am trying to create a simple user control that contains an ImageButton and a Label but the problem is the ImageBox and Label don't appear to have been properly set - they just show the default don't exist values..
Here is the ascx file:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="WebApplication7.WebUserControl1" %>
<div>
<asp:ImageButton ID="ImageButton1" runat="server" AlternateText="BadImage" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
I am trying programmatically add a new user control object to my windows form:
protected void Page_Load(object sender, EventArgs e)
{
String srcName = "This-Is-Our-Time&quo ...
Go to the complete details ...