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 yestem.webplug.DBTools; using yestem.webplug.BLL; using yestem.webplug.Model; using yestem.webplug.Utility; namespace yestem.webplug.web { public partial class templates_second_R_index : System.Web.UI.Page { protected string AN="0"; protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { SqlHelper.ExecuteNonQuery(SqlHelper.CONN_STRING, CommandType.Text, "update accessnumber set an=an+1 where website='zsb'"); object o = SqlHelper.ExecuteScalar(SqlHelper.CONN_STRING, CommandType.Text, "select an from accessnumber where website='zsb'"); if(o != null){AN=o.ToString();} } } } }