المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : طريقة اضافة البليرز اونلاين علي موقع ASP C#


abdoz124
15-06-2020, 11:57 PM
طريقة اضافة البليرز اونلاين علي موقع ASP C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Reflection.Emit;

namespace bloody_sro
{
public partial class hoempage : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("Data Source=VMI394907\\SQLEXPRESS;Initial Catalog=SRO_VT_ACCOUNT;Persist Security Info=True;User ID=sa;Password=Abdelhady1");
protected void Page_Load(object sender, EventArgs e)
{
string ins = "SELECT top 1 nUserCount FROM _ShardCurrentUser WHERE nShardID = 64 ORDER BY nID desc";
SqlCommand com = new SqlCommand(ins, con);
con.Open();
int temp = Convert.ToInt32(com.ExecuteScalar().ToString());
con.Close();
Label1.Text = "" + temp;
}
}
}