ASP 后台写html生成前台table
来源:互联网 发布:扑克变牌衣淘宝女装 编辑:程序博客网 时间:2024/05/13 17:26
后台VB:
If Not newTable Is Nothing And newTable.Rows.Count > 0 Then
Dim str As StringBuilder = New StringBuilder()
str.Append("<table border='1' cellpadding='0' cellspacing='0' class='tbl' style ='text-align :center '>")
For i = 0 To newTable.Rows.Count - 1
If i Mod 3 = 0 Then
str.Append("<tr>")
End If
Dim path As String = newTable.Rows(i)(2).ToString.Replace("~", "..")
str.Append("<td>")
str.Append("<table border='0' cellpadding='0' cellspacing='0' width='220' class='tbl' style ='text-align :center '>")
str.Append("<tr>")
str.Append("<td style='height :80px; text-align :center '>")
str.Append("<input type ='image' src ='..\image\czuft.jpg' onclick ='' style ='height:56px;width :112px'/>")
str.Append("</td>")
str.Append("</tr>")
str.Append("<tr>")
str.Append("<td style='height :140px; text-align :center;'>")
str.Append("<input type ='image' src ='" & path & "' onclick ='' style =' height:112px;width :80px' />")
str.Append("</td>")
str.Append("</tr>")
str.Append("<tr>")
str.Append("<td style ='height :30px;font-weight :bold'>" & newTable.Rows(i)(1).ToString() & "</td>")
str.Append("</tr>")
str.Append("<tr>")
str.Append("<td style ='height :30px;font-weight :bold'>" & newTable.Rows(i)(3).ToString() & "</td>")
str.Append("</tr>")
str.Append("<tr>")
str.Append("<td style='height :40px; text-align :right; padding-right :10px;font-weight:bold'>NO." & newTable.Rows(i)(0).ToString() & "</td>")
str.Append("</tr>")
str.Append("</table>")
str.Append("</td>")
If i Mod 3 = 2 Then
str.Append("</tr>")
ElseIf i = newTable.Rows.Count - 1 Then
str.Append("</tr>")
End If Next
str.Append("</table>")
Me.Literal1.Text = str.ToString()
Else
End If
前台aspx:
<div runat ="server" id ="divIamge" style ="width :660px;text-align:center; padding-top:20px; padding-left :300px ">
<asp:Literal ID="Literal1" runat ="server" Text ="XXXX" ></asp:Literal>
</div>
- ASP 后台写html生成前台table
- 2016年1月23日 后台生成HTML table 传到前台页面
- Asp dotnet 后台动态控制前台HTML标签
- asp.net后台生成前台页面控件
- ASP.NET通过URL读取HTML(后台读取前台HTML)
- 织梦后台生成不如前台静态页面直接写
- 分页查询--前台HTML+后台asp.net代码
- asp.net后台代码访问前台html标签
- 后台生成前台表格
- asp.net 后台生成html标签
- js通过后台配置动态生成html table表格
- .net后台写前台页面
- C#后台如何对ASP.net前台的table动态添加行?
- 后台生成table表格
- 【Asp.net】前台的Html控件向后台传值以及前台的html的input按钮如何调用后台的方法
- [Asp.Net]asp.net后台获取前台html控件的值的方法
- 后台生成前台图片展示
- ASP.NET 前台后台问题
- Android进程间传递自定义类型参数实现Parcelable接口
- Linux一些常用命令
- mysql 安装步骤
- 基于Qt Assistant的软件帮助系统
- 开源 免费 java CMS - FreeCMS1.2-标签 infoSign
- ASP 后台写html生成前台table
- linux ls 只显示文件或者文件夹
- Jsp中实现搜索查找功能
- 32位Intel CPU所含有的寄存器
- 什么是 HTML?
- linux/x11下编译Qt4.8可能出现的错误解决办法
- Makfile常用函数
- Shlwapi
- Android完全退出应用程序,Activity自定义管理栈