



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















Master Page Demo
Master
Demo Of Master Page
Insight Products Downloads Contact Us
Info
Product Type 1
Product Type 2
Product Type 3
copyright @Sambare
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MasterDisplay.aspx.cs" Inherits="MasterDisplay" %>
Home page
#header{ color: blueviolet; text-align: center; font-size: 20px; } #nav{ background-color:darkseagreen; padding: 5px; } ul{ list-style-type: none; } li a { color:crimson ; font-size: 30px; column-width: 5%; } li { display: inline; padding-left: 2px; column-width: 20px; } a{ text-decoration: none; margin-left:20px }
protected void Button1_Click(object sender, EventArgs e) { string connStr = ConfigurationManager.ConnectionStrings["connStr"].ConnectionString; SqlConnection con = new SqlConnection(connStr); SqlCommand cmd = new SqlCommand("Select City, State from Customer", con); con.Open(); SqlDataReader reader = cmd.ExecuteReader(); while (reader.Read()) { Label1.Text += reader["City"].ToString() + " " + reader["State"].ToString() + ""; } reader.Close(); con.Close(); }