-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathDefault.aspx
More file actions
27 lines (22 loc) · 797 Bytes
/
Copy pathDefault.aspx
File metadata and controls
27 lines (22 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ParameterizeConStringConfig.Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Sample</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>This sample shows how to parameterize connection strings in files other than web.config</h2>
<h3>See ParameterizeConStringConfig.wpp.targets for the details</h3>
<h3>Connection strings:</h3>
<ul>
<% foreach (ConnectionStringSettings cn in ConfigurationManager.ConnectionStrings)
{ %>
<li><%:cn.Name %>: <em><%:cn.ConnectionString %></em></li>
<%} %>
</ul>
</div>
</form>
</body>
</html>