点击图片,查看大图
2014-03-21 21:27
274 查看
<a href="" target="_blank" title="点击查看委托划扣授权书复印件" id="viewImg1" runat="server">
<asp:ImageMap ID="imgAccreditBook" runat="server" Height="83px" Width="99px">
</asp:ImageMap></a>
后台:
public void ShowBankImg()
{
StringBuilder sb = new StringBuilder();
sb.Append(@"select * from HT_Customer where FK_Customer_ID=@Id ");
SqlParameter[] paras ={
new SqlParameter("@Id",Convert.ToInt32(Request.QueryString["Id"].ToString()))
};
SqlDataReader rd = HTDT.DbUtility.AosySql.GetDr(sb.ToString(), paras);
if (rd.HasRows)
{
rd.Read();
this.imgAccreditBook.ImageUrl = "../uploads/" + ReportDoc.GetEntrustDrawAuthorizationUpload(Convert.ToInt32(rd["RemitInType"]));
this.BankImg1.ImageUrl = "../uploads/" + rd["RemitBankCardCopy"].ToString();
this.BankImg2.ImageUrl = "../uploads/" + rd["ReturnBankCardCopy"].ToString();
viewImg1.HRef = "../uploads/" + ReportDoc.GetEntrustDrawAuthorizationUpload(Convert.ToInt32(rd["RemitInType"]));
viewImg2.HRef = "../uploads/" + rd["RemitBankCardCopy"].ToString();
viewImg3.HRef = "../uploads/" + rd["ReturnBankCardCopy"].ToString();
}
}
<asp:ImageMap ID="imgAccreditBook" runat="server" Height="83px" Width="99px">
</asp:ImageMap></a>
后台:
public void ShowBankImg()
{
StringBuilder sb = new StringBuilder();
sb.Append(@"select * from HT_Customer where FK_Customer_ID=@Id ");
SqlParameter[] paras ={
new SqlParameter("@Id",Convert.ToInt32(Request.QueryString["Id"].ToString()))
};
SqlDataReader rd = HTDT.DbUtility.AosySql.GetDr(sb.ToString(), paras);
if (rd.HasRows)
{
rd.Read();
this.imgAccreditBook.ImageUrl = "../uploads/" + ReportDoc.GetEntrustDrawAuthorizationUpload(Convert.ToInt32(rd["RemitInType"]));
this.BankImg1.ImageUrl = "../uploads/" + rd["RemitBankCardCopy"].ToString();
this.BankImg2.ImageUrl = "../uploads/" + rd["ReturnBankCardCopy"].ToString();
viewImg1.HRef = "../uploads/" + ReportDoc.GetEntrustDrawAuthorizationUpload(Convert.ToInt32(rd["RemitInType"]));
viewImg2.HRef = "../uploads/" + rd["RemitBankCardCopy"].ToString();
viewImg3.HRef = "../uploads/" + rd["ReturnBankCardCopy"].ToString();
}
}
相关文章推荐
- 点击发送后图片查看大图的实现思路
- 点击图片查看大图,已封装好
- 【商城开发六】图片点击查看大图,支持手势,viewpager滑动
- jQuery插件——imgbox(点击图片查看大图)
- android webview加载html图片自适应手机屏幕大小&点击查看大图
- 基于JavaScript实现移动端点击图片查看大图点击大图隐藏
- 图片预览可以点击查看大图
- iOS-获取UIWebView或者WKWebView页面的左右图片链接,点击查看大图
- 弹出框PopupWindow,点击图片查看大图
- IOS 点击查看预览大图缩放图片往下掉的处理
- iOS-获取UIWebView或者WKWebView页面的左右图片链接,点击查看大图
- 点击查看大图,支持左右滑动切换、缩放图片
- Android 利用JS 实现对网络图片添加点击事件 查看大图
- jquery实现移动端点击图片查看大图特效
- js 图片 点击查看大图
- [置顶] Android 实现WebView点击图片查看大图列表及图片保存
- Android 实现WebView点击图片查看大图列表及图片保存
- [原创]WKWebview点击图片查看大图
- android webview加载html图片自适应手机屏幕大小&点击查看大图
- 移动端点击图片查看大图