40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.UI;
|
|||
|
|
using System.Web.UI.WebControls;
|
|||
|
|
|
|||
|
|
namespace Rems2018
|
|||
|
|
{
|
|||
|
|
public partial class test : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
user.Text = "Logon On Page: " + User.Identity.Name + " , Type:" + User.Identity.AuthenticationType;
|
|||
|
|
string cs = "Data Source=HPHDB;Integrated Security=SSPI; ";
|
|||
|
|
using (System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection(cs))
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
cn.Open();
|
|||
|
|
sqlOk.Text = "OK";
|
|||
|
|
}
|
|||
|
|
catch (System.Exception ex)
|
|||
|
|
{
|
|||
|
|
sqlOk.Text = ex.Message;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
//var UInfo = new Common.UserInfo();
|
|||
|
|
//if (UInfo != null)
|
|||
|
|
//{
|
|||
|
|
// AanvragerID.Text = UInfo.AanvragerID.ToString();
|
|||
|
|
// Lang.Text = UInfo.lang;
|
|||
|
|
//}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|