呜!!!不会了,,,,很简单的,,,,

xiaomaolover 2003-10-30 09:48:43
<%@ Page Language="VB" ContentType="text/html" %>
<%@ import namespace="system.data"%>
<%@ import namespace="system.data.oledb"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<style type="text/css">
<!--
.t {
border: 1px solid #6699ff;
}
-->
</style>

<body>

<form runat="server">
<asp:datalist ID="datalist1" runat="server" HeaderStyle-BackColor="#006600" HeaderStyle-BorderColor="#00FF00" HeaderStyle-ForeColor="#FFFFFF" OnEditCommand="DE" >

<itemtemplate>
<table width="500" border="0" align="center" cellpadding="3" cellspacing="3" bordercolor="#00417B" class="t">
<tr>
<td width="260"><font size="2">名称: <strong> <font color="#990000">
<%# container.dataitem("mingcheng") %>
</font> </strong> </font></td>
<td width="240"><font size="2">编号: <font color="#CC0000"> <strong>
<%# container.dataitem("bianhao")%>
</strong> </font> </font></td>
</tr>
<tr>
<td rowspan="6">
<div align="center"><font size="2"><img width="100" height="150">
</font><font size="2"> </font><font size="2"> </font></div></td>
<td width="240"><font size="2">类别:
<%# container.dataitem("leibie")%>
</font></td>
</tr>
<tr>
<td width="240"><font size="2">价格:
<%# container.dataitem("jiage")%>
</font></td>
</tr>
<tr>
<td width="240"><font size="2">下载次数:
<%# container.dataitem("xiazaicishu")%>
</font></td>
</tr>
<tr>
<td width="240" height="17"><font size="2">出版社:
<%# container.dataitem("chubanshe")%>
</font></td>
</tr>
<tr>
<td width="240" height="65" valign="top"><font size="2">描述:
<%# container.dataitem("miaosu")%>
</font></td>
</tr>
<tr>
<td width="240" height="17">
<div align="right"><font size="2">
<asp:linkbutton ID="LinkButton_Edit" runat="server" ForeColor="Fuchsia" CommandName="Edit">更改</asp:linkbutton>
</font></div></td>
</tr>
</table>
<br>
</itemtemplate>
<edititemtemplate>

<asp:linkbutton ID="LinkButton_Edit" runat="server" ForeColor="Fuchsia" CommandName="Edit">1111</asp:linkbutton>

</edititemtemplate>
</asp:datalist>
</form>
</body>
</html>
<script runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
If Not IsPostBack Then
B()
End If
End Sub

Sub B()
DIM A as new oledbconnection()
a.connectionstring="provider=microsoft.jet.oledb.4.0;data source=" & server.MapPath("../db1.mdb")
dim b as new OleDbDataAdapter ("select * from soft ",a)
dim c as new dataset()
b.fill(c,"soft")
datalist1.datasource=c
datalist1.databind()
End Sub

Function PanDuan () as boolean
if session("Adm") is nothing then
return false
else
return true
end if
End Function


Sub DE(source As Object, e As DataListCommandEventArgs)
datalist1.EditItemIndex=e.item.itemindex
B()
End Sub

Sub DE(source As Object, e As DataListCommandEventArgs)
datalist1.EditItemIndex=e.item.itemindex
B()
End Sub

</script>

就是不好使点一下更改,,,。进不了编辑部模式。。?
为什么呢??

...全文
21 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
digqq 2003-10-30
  • 打赏
  • 举报
回复
up一下
孟子E章 2003-10-30
  • 打赏
  • 举报
回复
http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=8ADE535F-AD40-4DE3-A962-A64B4FAF12C4

62,072

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧