活动页面添加参赛作品瀑布流
[PumpkinHouse.git] / PumpkinHouseWeb / DiscussionBoard.aspx.cs
blobcaebb8de82cfbd9116e2f1fd10fc304f45308595
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Web;
5 using System.Web.UI;
6 using System.Web.UI.WebControls;
7 using PumpkinHouseDatabase;
9 namespace PumpkinHouse
11 public partial class DiscussionBoard : System.Web.UI.Page
13 public int BoardId;
14 public string BoardName;
15 protected void Page_Load(object sender, EventArgs e)
17 if (!int.TryParse(Request.Params["boardId"], out BoardId))
19 Response.Redirect("~/404.aspx");
21 using (DataUtils utils = new DataUtils(false))
23 DB_Discussion_Board board = utils.FindDiscussionBoard(BoardId);
24 if (board == null)
26 Response.Redirect("~/404.aspx");
28 BoardName = board.Board_Name;
29 Page.Title = BoardName + " - 木头盒子讨论组";