要写一个下拉框单选省份
网上找到些说法
但是代码都不全
整了好久没整好
谁能给个例子
最好从model、controller、view三方面全方位解析
网上找到些说法
但是代码都不全
整了好久没整好
谁能给个例子
最好从model、controller、view三方面全方位解析
解决方案 »
- WPF ListView 绑定图片为什么非得是匿名对象
- 读取listBox中的文本内容
- 数据库问题,adapter.update无法更新数据源
- 精通winform的进
- winform中的datagridview 的一列绑定autocommpletesource 的问题.高手请进
- 保存提示框怎么弄哦?
- 请问为什么我在c#中用sqlconnection连接不上数据库呢?
- winform实现每日到了时间点自动备份一次文件的功能
- 怎么获取一个窗体坐标
- 如果在GridView里插入一行資料
- treevuew绑定数据库,如何让其显示在子目录上。哪位高手指导一下呀。
- 请问如何点击一个按钮而获取admin权限?
{
cboBussiness.DataSource = new string[] { "药品生产", "药品批发", "药品零售", "器械生产", "器械批发", "器械零售" };
cboBussiness.DataBind();
if (Model != null)
{
cboBussiness.Text = Model.Bussiness;
if (!Model.CancelDate.Equals(DateTime.MinValue))
txtCancelDate.Text = Model.CancelDate.ToShortDateString();
if (!Model.GspDate.Equals(DateTime.MinValue))
txtGspDate.Text = Model.GspDate.ToShortDateString();
if (!Model.GspPeriod.Equals(DateTime.MinValue))
txtGspPeriod.Text = Model.GspPeriod.ToShortDateString();
if (!Model.IssuedDate.Equals(DateTime.MinValue))
txtIssuedDate.Text = Model.IssuedDate.ToShortDateString();
if (!Model.LicensePeriod.Equals(DateTime.MinValue))
txtLicensePeriod.Text = Model.LicensePeriod.ToShortDateString();
}
}
</script>
<tr>
<td style="width: 100px">
经营范围:
</td>
<td style="width: 100px">
<asp:ComboBox ID="cboBussiness" runat="server" AutoPostBack="false" DropDownStyle="DropDown"
OnLoad="cboBussiness_Load" Width="88%">
</asp:ComboBox>
<%: Html.ValidationMessageFor(model => model.Bussiness) %>
</td>
</tr>