migrate to new git
This commit is contained in:
24
web/admin/news/range2.aspx.cs
Normal file
24
web/admin/news/range2.aspx.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class admin_news_range2 : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
sqlDataSource1.ConnectionString = ConfigurationManager.ConnectionStrings["shopConn"].ConnectionString;
|
||||
sqlDataSource1.ConnectionString = sqlDataSource1.ConnectionString.Replace("Provider=SQLNCLI11", "");
|
||||
string root = "0";
|
||||
if (Convert.ToString(Request["num"]) != "" & Request["num"]!=null)
|
||||
{
|
||||
root = Request["num"];
|
||||
}
|
||||
|
||||
sqlDataSource1.SelectCommand = "SELECT [num], [kind], [root], [range] FROM [news_kind] WHERE [root]=" + root + " ORDER BY [range]";
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user