使用纯粹的asp 语言制作的栏目管理(三)
点击次数:73 次 发布日期:2008-11-06 07:51:25 作者:源代码网
|
源代码网整理以下呵呵,连续看了几个特别复杂的程序,相信大的脑袋已经和 豆腐 的脑袋差不多 变成了一个大大的。。 strSQL="select * from lanmu where id=" intRecID.ToString(); dbComm=new SQLCommand(strSQL,conn); dbComm.ActiveConnection.Open(); dbComm.Execute(out dbRead); if(!dbRead.Read()){ showmsg.Text="对不起,没有编号为" intRecID.ToString() "的文章"; return; } //HttpServerUtility server=new HttpServerUtility(); showmsg.Text=Server.HtmlEncode(dbRead["content"].ToString()); } </script> <html> <head> <title>浏览文章__技术专栏__<%=sqlRead("title")%></title> <%=GrabPage("/inc/head.inc")%> <link rel="stylesheet" type="text/css" href="/doufu.css"> </head> <body> <asp:Label id=showmsg runat=server /> </body> </html> 源代码网推荐 源代码网供稿. |
