asp.net首页设计有关问题

asp.net首页设计问题
我用DW做好页面布局,包括多个table,如何将从数据库中读取的数据写到相应的table中?希望不要像ASP中那样无法将界面设计和程序设计分开


------解决方案--------------------
用AJAX吧。
------解决方案--------------------
很好分的啊,你到 vs 里建立一个文件 然后把 Dw 里的html代码 copy 过来,

这样就OK了,

我基本上很少用 table 都用 div +css 所以一般不会在乎这些,
------解决方案--------------------
一个是把table 加runat= "server "变成html控件 这个是典型的.net做法

第二种是 用web控件 reapeter 之类的。。

另一种是 在后台用循赋值 给一个变量 然后用literal.text=变量 类似 ASP的做法


还有 就是像楼上说的AJAX 这个要在客户端来完成 更好的用户体验
------解决方案--------------------
1.
往你的Table里面托 GridView DataGrid DataList 等控件,设置绑定信息

2.
看看书再来



------解决方案--------------------
在table 里写datalist or repater
------解决方案--------------------
div+css+reapter或table+reapter
就可以了
------解决方案--------------------

多了解下数据控件


------解决方案--------------------
?
------解决方案--------------------
jf
------解决方案--------------------
只要html标签语言的功底好点就可以了,起码我公司里的网页设计师布局根本就布不过我.
html以及css熟悉就行了,什么样的东西都能排出来
------解决方案--------------------
1、在table的td里面放lable控件,然后在后台赋值。
2、可以在td中放变量,然后在后台赋值。
aspx:
<table> <tr> <td> <asp:Label id= "lb " runat= "server "> </asp:Label> td> </tr> </table>
<table> <tr> <td> <%= myValue %> </td> </tr> </table>

aspx.cs:

protected System.Web.UI.WebControls.Label lb;
public string myValue;

......

lb.text = ....;
myValue = .......;

------解决方案--------------------
当然,你也可以把已经存在的table嵌入到datalist等控件中去,然后绑定数据。具体的要看是什么样的数据,需要怎么样展示等等。
------解决方案--------------------
这里是两个表的一个我的例子
<table cellspacing= "1 " cellpadding= "3 ">
<tbody>
<tr align= "left ">
<td colspan= "3 ">
<strong>
<asp:Label ID= "lbl_Name " runat= "server " Text= "MP3 "> </asp:Label> </strong> </td>
</tr>
<tr align= "left ">
<td align= "center " bgcolor= "MintCream ">
产品名称 </td>
<td align= "center " bgcolor= "MintCream ">
产品价格 </td>
</tr>
<asp:Repeater ID= "MP3Price " runat= "server ">
<ItemTemplate>
<tr align= "left ">
<td align= "center ">
<asp:Label ID= "lbl_Title " runat= "server " Text= ' <%# Bind( "AP_Title ")%> '> </asp:Label> </td>