Admin/RoomSuggesstionUpdate.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using LaboratoryOrder.DataBase;
using System.Data.SqlClient;
namespace LaboratoryOrder.Admin
{
public partial class RoomSuggesstionUpdate : System.Web.UI.Page
{
protected DataTable table = null;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Form["s1"] != null)
{
string content = Request.Form["content"].ToString();
string Title = Request.Form["Title"].ToString();
SqlParameter[] para = new SqlParameter[3];
para[0] = SqlBase.CreateParam("@suggesstion", SqlDbType.VarChar, 2000, ParameterDirection.Input, content);
para[1] = SqlBase.CreateParam("@suggesstionTitle", SqlDbType.VarChar, 100, ParameterDirection.Input, Title);
para[2] = SqlBase.CreateParam("@id", SqlDbType.Int, 0, ParameterDirection.Input, Request["id"]);
try
{
SqlBase.ExecuteQuery("update RoomSuggesstion set suggesstionTitle = @suggesstionTitle,suggesstion=@suggesstion where id = @id", para, CommandType.Text);
if (Request.QueryString["mode"] != null)
{
Response.Redirect("RoomSuggesstionListView.aspx");
}
else
{
Response.Redirect("RoomSuggestionManage.aspx");
}
}
catch (Exception err)
{
Response.Write(err.Message);
}
}
if (Request["id"] != null)
{
SqlParameter[] para = new SqlParameter[1];
para[0] = SqlBase.CreateParam("@id", SqlDbType.Int, 0, ParameterDirection.Input, Request["id"].ToString());
table = SqlBase.ExecuteDataTable("select * from RoomSuggesstion where id = @id", para, CommandType.Text);
}
else
{
Response.Redirect("RoomSuggestionManage.aspx");
}
}
}
后面还有 1 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
