[Mono-bugs] [Bug 76216][Wis] Changed - data will not bind to web controls in a user control

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 28 08:37:59 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by carl at carl-olsen.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76216

--- shadow/76216	2005-09-28 05:23:27.000000000 -0400
+++ shadow/76216.tmp.25265	2005-09-28 08:37:59.000000000 -0400
@@ -166,6 +166,54 @@
 ------- Additional Comments From carl at carl-olsen.com  2005-09-27 21:11 -------
 A datasouce isn't necessary.  All you need to do is try to add some 
 text to the label control.
 
 ------- Additional Comments From gonzalo at ximian.com  2005-09-28 05:23 -------
 If you have the test, please, attach it.
+
+------- Additional Comments From carl at carl-olsen.com  2005-09-28 08:37 -------
+<%@ Control Language="c#" AutoEventWireup="false" 
+Src="Banner.ascx.cs" %> <asp:label id="Greeting" runat="server"
+forecolor="#ffffff"></asp:label>&nbsp;
+<asp:hyperlink id="UserLink" runat="server" visible="true"
+forecolor="#ffffff"></asp:hyperlink>
+
+
+namespace CarlsWebs.CarlOlsen.Web.Controls {
+	using System;
+	using System.Data;
+	using System.Drawing;
+	using System.Web;
+	using System.Web.UI.WebControls;
+	using System.Web.UI.HtmlControls;
+	using CarlsWebs.WebModules.Accounts.Business;
+
+	public class Banner : System.Web.UI.UserControl
+	{
+		protected System.Web.UI.WebControls.Label Greeting;
+		protected System.Web.UI.WebControls.HyperLink 
+UserLink;
+
+		private void Page_Load(object sender, 
+System.EventArgs e)
+		{
+			Greeting.Text = "Welcome";
+			Greeting.Text += "Guest User.";
+			UserLink.Text = "Click to Login";
+				UserLink.NavigateUrl =
+"/Modules/Users/Login.aspx";
+
+		override protected void OnInit(EventArgs e)
+		{
+			base.OnInit(e);
+			InitializeComponent();
+		}
+		
+		private void InitializeComponent()
+		{
+			this.Load += new
+System.EventHandler(this.Page_Load);
+
+		}
+	}
+}
+


More information about the mono-bugs mailing list