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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=76214 --- shadow/76214 2005-09-25 04:52:14.000000000 -0400 +++ shadow/76214.tmp.13944 2005-09-25 12:52:18.000000000 -0400 @@ -36,6 +36,114 @@ Additional Information: ------- Additional Comments From [EMAIL PROTECTED] 2005-09-25 04:52 ------- Please, attach a simple test case. + +------- Additional Comments From [EMAIL PROTECTED] 2005-09-25 12:52 ------- +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Data.SqlClient; +using System.Drawing; +using System.Text; +using System.Text.RegularExpressions; +using System.Web; +using System.Web.Mail; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using CarlsWebs.WebModules.Contact.Business; + +namespace CarlsWebs.CarlOlsen.Web.Modules.Contact +{ + public class index : CarlsWebs.CarlOlsen.Web.CarlOlsenPage + { + protected System.Web.UI.WebControls.DropDownList +DropDownStates; + protected System.Web.UI.WebControls.DropDownList +DropDownCountries; + + private void Page_Load(object sender, +System.EventArgs e) + { + if (!Page.IsPostBack) + { + GetStates(); + GetCountries(); + } + } + + private void GetStates() + { + CarlsWebs.WebModules.Contact.Business.Contact +locations = new CarlsWebs.WebModules.Contact.Business.Contact(); + DropDownStates.DataSource = +locations.GetStates(); + DropDownStates.DataTextField = "description"; + DropDownStates.DataValueField = "statecode"; + DropDownStates.SelectedValue = "IA"; + DropDownStates.DataBind(); + } + + private void GetCountries() + { + CarlsWebs.WebModules.Contact.Business.Contact +locations = new CarlsWebs.WebModules.Contact.Business.Contact(); + DropDownCountries.DataSource = +locations.GetCountries(); + DropDownCountries.DataTextField += "description"; + DropDownCountries.DataValueField += "countrycode"; + DropDownCountries.SelectedValue = "US"; + DropDownCountries.DataBind(); + } + + override protected void OnInit(EventArgs e) + { + InitializeComponent(); + base.OnInit(e); + } + + private void InitializeComponent() + { + this.Load += new System.EventHandler +(this.Page_Load); + } + + } +} + +<%@ Page language="c#" AutoEventWireup="false" +Inherits="CarlsWebs.CarlOlsen.Web.Modules.Contact.index" %> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 +Transitional//EN" "http://www.w3.org/tr/html4/loose.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml lang="en" xml:lang="en"> + <head> + <title>index</title> + <meta http-equiv="Content-Type" content="text/html; +charset=iso-8859-1" /> + <meta http-equiv="Content-Language" content="en-us" /> + <meta name="GENERATOR" content="Microsoft Visual +Studio .NET 7.1" /> + <meta name="CODE_LANGUAGE" content="C#" /> + <meta name="vs_defaultClientScript" +content="JavaScript" /> + <meta name="vs_targetSchema" +content="http://schemas.microsoft.com/intellisense/ie5" /> + <link href="/Styles/carl.css" type="text/css" +rel="stylesheet" /> + </head> + <body> + <form id="ContactForm" method="post" runat="server"> + <asp:dropdownlist id="DropDownStates" +runat="server"></asp:dropdownlist> + <asp:dropdownlist id="DropDownCountries" +runat="server"></asp:dropdownlist> + </form> + </body> +</html> + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
