<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserInfo.ascx.cs" Inherits="Coordinator_UCD_UserInfo" Description="UserName & Password Info" %> <div class = "cl"> <label class="bx"> User Name </label><span class="bx"><asp:TextBox ID="UserName" Text='<%# Bind("UserName") %>' MaxLength="25" runat="server" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is Required"></asp:RequiredFieldValidator></span></div> <br /> <br /> <br /> <div class="cl"> <label class="bx"> Password </label><span class="bx"><asp:TextBox ID="Pwd" Text='<%# Bind("Pwd") %>' runat="server" AutoCompleteType="Disabled" /><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Pwd" Display="Static" ErrorMessage="Password Required"></asp:RequiredFieldValidator></span></div>This one is the simplest UserControl with only 2 fields.
foreach (DictionaryEntry entry in e.Values) { if (entry.Value.Equals("")) { // Use the Cancel property to cancel the // insert operation. //e.Cancel = true; // MessageLabel.Text += "Please enter a value for the " + // entry.Key.ToString() + " field.<br/>"; } }What should I do to properly pass parameters to and from UserControl?