国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

利用c#制作簡單的留言板(4)

2024-07-21 02:17:54
字體:
來源:轉載
供稿:網友
查看留言內容showtopic.aspx
<%@ page language="c#" codebehind="showtopic.cs" autoeventwireup="false" inherits="notpage.showtopic" %>
<html><head>
<meta content="microsoft visual studio 7.0" name=generator>
<meta content=c# name=code_language></head>
<body>
<form method=post runat="server">
<p align=center><font color=red><b>察看留言</b></font></p><br>
<p align=left><font color=blue>留言主題:<asp:label id=n_tdtitle runat="server" forecolor="black"></asp:label> 
<br>留言時間:<asp:label id=n_tdadddate runat="server" forecolor="black"></asp:label><br></font><font color=blue>留言人:
<asp:label 
id=n_tdauthor runat="server" forecolor="black"></asp:label><br>留言內容:<asp:label id=n_tdcontent 
runat="server" forecolor="black"></asp:label> </font></p></form>

</body></html>
對應的cs
namespace notpage
{
using system;
using system.collections;
using system.componentmodel;
using system.data;
using system.drawing;
using system.web;
using system.web.sessionstate;
using system.web.ui;
using system.web.ui.webcontrols;
using system.web.ui.htmlcontrols;</p><p> /// <summary>
/// summary description for showtopic.
/// </summary>
public class showtopic : system.web.ui.page
{
protected system.web.ui.webcontrols.label n_tdauthor;
protected system.web.ui.webcontrols.label td;
protected system.web.ui.webcontrols.label n_tdcontent;
protected system.web.ui.webcontrols.label n_tdadddate;
protected system.web.ui.webcontrols.label n_tdtitle;
protected system.web.ui.webcontrols.label n_ttitle;

public showtopic()
{
page.init += new system.eventhandler(page_init);
}</p><p> protected void page_load(object sender, eventargs e)
{
if (!ispostback)
{
//
// evals true first time browser hits the page
//
}
}</p><p> protected void page_init(object sender, eventargs e)
{
//
// codegen: this call is required by the asp+ windows form designer.
//
int int_id;
int_id = request.querystring["id"].toint32();
notepage np = new notepage();
notepage objnp = np.gettopic(int_id);
n_tdtitle.text = objnp.title.tostring();
n_tdcontent.text = objnp.content.tostring();
n_tdauthor.text = objnp.author.tostring();
n_tdadddate.text = objnp.adddate.tostring();
initializecomponent();
}</p><p> /// <summary>
/// required method for designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void initializecomponent()
{
this.load += new system.eventhandler (this.page_load);
}
}
}

中國最大的web開發資源網站及技術社區,
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 通江县| 佛坪县| 罗江县| 峨边| 界首市| 桂阳县| 涿鹿县| 克拉玛依市| 彭山县| 灵台县| 秦安县| 海口市| 清镇市| 元阳县| 桓台县| 洛浦县| 四子王旗| 宜阳县| 常宁市| 平凉市| 瓦房店市| 名山县| 郎溪县| 鄂托克前旗| 清远市| 神农架林区| 福海县| 股票| 滦南县| 镇远县| 山东省| 新河县| 平江县| 舒兰市| 锦屏县| 巍山| 怀仁县| 青阳县| 温州市| 宁都县| 满洲里市|