프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM_API / Default.aspx.cs @ d60f94ee

이력 | 보기 | 이력해설 | 다운로드 (1.11 KB)

1
using System;
2
using System.Collections.Generic;
3
using System.Configuration;
4
using System.Data.EntityClient;
5
using System.Data.SqlClient;
6
using System.Linq;
7
using System.Web;
8
using System.Web.UI;
9
using System.Web.UI.WebControls;
10

    
11
namespace KCOM_API
12
{
13
    public partial class Default : System.Web.UI.Page
14
    {
15
        protected void Page_Load(object sender, EventArgs e)
16
        {
17
            string connection  = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
18
            EntityConnectionStringBuilder _bl = new EntityConnectionStringBuilder(connection);
19
            
20
            SqlConnectionStringBuilder sqpbl = new SqlConnectionStringBuilder(_bl.ProviderConnectionString);
21
            sqpbl.UserID = "xxxxxx";
22
            sqpbl.Password = "xxxxxx";
23

    
24
            (form1.FindControl("txtConnection") as TextBox).Text = sqpbl.ToString();
25

    
26

    
27
            (form1.FindControl("txtTileSource") as TextBox).Text = KCOM_API.Properties.Settings.Default.TileSoucePath;
28
            (form1.FindControl("txtTileSourceSub") as TextBox).Text = KCOM_API.Properties.Settings.Default.TileSoucePath_SUB;
29
        }
30
    }
31
}
클립보드 이미지 추가 (최대 크기: 500 MB)