解决方案 »
- 对于不返回任何键列信息的 SelectCommand,不支持 UpdateCommand 的动态 SQL 生成
- 要做一个WEB地图的项目,大家给推荐一下用那家的API好
- Form.Close()和Form.Hide() 有什么区别?
- 大家帮帮我。。。。动态生成imagebutton的问题
- 在一个MIS中,如何设计用户权限的管理??
- progressBar 如何与下载的文件同步
- C# 如何设置权限
- 大虾请进:简单问题,我知道打开网页有com控件AxWebBrowser,那么浏览目录(explorer)有没有相应的控件
- -----------数据库连接的问题:我想不通!webservice 与webform之间。
- 如何获取本地局域网的所有SQL Server服务器
- 如何将数据库中表的数据生成XML
- 同程序,不同运行参数,多进程,如何根据运行参数kill进程?
我的部分代码: string PicNewName = ""+Label_ID.Text+".JPG";
Image_mold.ImageUrl = "~/image/PicNewName";//Image_mold 是 image 控件 根据Label_ID来获得 相应的图片其中 image文件夹 和本程序的上一级文件夹是并列的 为啥显示不了 图片 我也用 Image_mold.ImageUrl = "../image/PicNewName"; 也没有用
or
Image_mold.ImageUrl = "~/image/"+ Label_ID.Text+".JPG";
//单选框选择所需图像
<asp:RadioButtonList ID="radlistSex" runat="server" Font-Size="12px" Height="20px"
RepeatDirection="Horizontal" Width="95px">
<asp:ListItem Selected="True"> 男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:RadioButtonList>
//根据所选内容调用文件夹中的图片
string sex = "";
string Images = "";
if (radlistSex.SelectedValue.Trim() == "男")
{
sex = "男";
Images = "imgHead/x1.jpg";
}
else
{
sex = "女";
Images = "imgHead/xx.jpg";
}
//设置img显示Images图片或插入数据库(略)