yjfc_xinxi/my_message_submit.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 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 System.Data.SqlClient;
namespace yjfc_xinxi
{
public partial class my_message_submit : System.Web.UI.Page
{
public DateTime getdate;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
if (Session["usertruename"].ToString().Trim() == "")
{
Response.Redirect("/login.aspx");
}
else
{
//lb_username.Text = Session["usertruename"].ToString().Trim();
//string sql = "select * from xinxi_organize where organizeid=" + Session["organizeid"].ToString() + "";
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
//conn.Open();
//SqlCommand cmd = new SqlCommand(sql, conn);
//SqlDataReader dr = cmd.ExecuteReader();
//if (dr.Read())
//{
// lb_organization.Text = dr["organizename"].ToString();
//}
//dr.Close();
//dr.Dispose();
//conn.Close();
try
{
string sql_time = "select getdate()";
SqlCommand cmd_time = new SqlCommand(sql_time, conn);
conn.Open();
getdate = Convert.ToDateTime(cmd_time.ExecuteScalar());
}
catch (Exception ex)
{
ex.ToString();
}
finally
{
后面还有 48 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。