<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="findjobs._Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal"
RepeatColumns="4" Width="384px">
<ItemTemplate>
<font face="宋体">
<table id="Table8" cellspacing="0" cellpadding="1" width="150" border="0" runat="server">
<tr>
<td style="height: 28px" align="center">
<font face="宋体">
<asp:Image ID="Image1" runat="server" Cursor="Hand" Height="120px" Width="120px" ImageUrl='<%# GetPicPath(DataBinder.Eval(Container, "DataItem.sptpwjm").ToString()) %>' alt='<%# DataBinder.Eval(Container, "DataItem.spmc").ToString() %>'>
</asp:Image></font></td>
</tr>
</table>
</font>
</ItemTemplate>
</asp:DataList>
</div>
</form>
</body>
</html>
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal"
RepeatColumns="4" Width="384px">
<ItemTemplate>
<font face="宋体">
<table id="Table8" cellspacing="0" cellpadding="1" width="150" border="0" runat="server">
<tr>
<td style="height: 28px" align="center">
<font face="宋体">
<asp:Image ID="Image1" runat="server" Cursor="Hand" Height="120px" Width="120px" ImageUrl='<%# GetPicPath(DataBinder.Eval(Container, "DataItem.sptpwjm").ToString()) %>' alt='<%# DataBinder.Eval(Container, "DataItem.spmc").ToString() %>'>
</asp:Image></font></td>
</tr>
</table>
</font>
</ItemTemplate>
</asp:DataList>
</div>
</form>
</body>
</html>
解决方案 »
- 有很多FORM类 如 Form1 Form2........Formn 分别实例化了 a1 a2 ...an,如何写通用函数通过此函数调用a1 ....an
- 所有高手帮忙看下,有关c#的wiki
- 请大家 帮忙解决url补齐的问题
- 如何编程实现通过读卡器取二代身份证的信息?
- outlookBar怎么这么郁闷啊!~大家进来看看
- 请教:新增2万条记录,但更新需5、6分钟,太慢!有更快的方法吗?
- 请大家帮忙了,谢谢!
- 不知道现在的C#反编译器还有用没?
- 高手请教!!C#中如何将一个结构体中的值 赋值给一个数组?
- 在ASP.NET中怎么能通过Request.Form得到中文内容
- c#文本查找操作
- .net网站发布后,一访问网站就关闭IIS应用程序池,求解决方案
比如后台方法,
public string GetPicPath(string UserName)
{}