110,566
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ShowMessage.aspx.vb" Inherits="BBS_ShowMessage" %>
<!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>Untitled Page</title>
<script type="text/javascript">
function go(floor)
{
document.getElementById("replay").value = floor;/////////////////////value没点出来,手写上去的,应该是错误的
window.location.href="#reply";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ORepeater ID="ORepeater1" runat="server">
<ItemTemplate>
<table border="1" width="800px" style="TABLE-LAYOUT:fixed;word-break:break-all">
<tr>
<td width="160px" align="left">Author:<%#Eval("Author")%></td>
<td width="496px" align="left">Title:<%#Eval("Title")%></a></td>
<td width="144px" align="right"><%#Eval("updatetime")%></td>
</tr>
<tr>
<td align="left"><%#Eval("Replycount")%> floor</td>
<td align="left" colspan="2">Content:<%#Eval("Content")%></td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="left">
<asp:LinkButton ID="LinkButton1" runat="server" CommandName ="Re" CommandArgument ="123" OnClick="go(<%#Eval("Replycount") %>">Reply <%#Eval("Replycount")%> Floor</asp:LinkButton></td>///////////////这个go是不是有问题?
</tr>
</table>
</ItemTemplate>
</asp:ORepeater>
</div>
<br />
<br />
<asp:OLabel ID="OLabel1" runat="server">Reply:</asp:OLabel>
<br />
<a name="reply">///////////////锚点,其实我想把光标定到文本框里面,不知道如何解决
<asp:OTextBox ID="Content" runat="server" Height="150px"
TextMode="MultiLine" Width="500px">
</asp:OTextBox>
<br />
<div>
<asp:OButton ID="OButton1" runat="server" Text="Submit" BackColor="#FEC359"/>
</div>
<p>
<asp:OHyperLink ID="OHyperLink1" runat="server" Font-Underline="True"
ForeColor="Blue" NavigateUrl="BBSHomePage.aspx">Back to ForumList</asp:OHyperLink>
</p>
</form>
</body>
</html>