MobilePhoneWeb/siteAdmin/newsEdit.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Ftion;
using OpSql;
using Common;
using COMM;
using myNewsInfo;
using System.Data;
using System.Data.SqlClient;
using conn;
using System.Configuration;
namespace NewOAWeb.siteAdmin
{
public partial class newsEdit : System.Web.UI.Page
{
public string ProImage = "../images/noImage.gif";
protected void Page_Load(object sender, EventArgs e)
{
//Ftion.Function.CheckState();
if (!IsPostBack)
{
LoadData();
BindDDL();
}
}
private void BindDDL()
{
DDLProClass.DataSource = myNewsInfo.NewsInfo.GetClassMes();
DDLProClass.DataTextField = "ClassName";
DDLProClass.DataValueField = "ID";
DDLProClass.DataBind();
}
private void LoadData()
{
string strPID = Common.GetMes.GetRequestQuery(Request, "PID");
if (!string.IsNullOrEmpty(strPID))
{
SqlDataReader DataRead = myNewsInfo.NewsInfo.GetNewsInfo(strPID);
if (DataRead.HasRows)
{
DataRead.Read();
txtProName.Value = Server.HtmlDecode(DataRead["NTitle"].ToString());
txtProNote.Value = Server.HtmlDecode(DataRead["NContext"].ToString());
DDLProClass.SelectedValue = Server.HtmlDecode(DataRead["NCID"].ToString());
string Picture = Server.HtmlDecode(DataRead["NPicture"].ToString());
if(!string.IsNullOrEmpty(Picture))
{
ProImage = "../newsImg/" + Picture + "";
}
else
{
}
}
后面还有 56 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。