Server Error in '/JoinsWithNET1' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Illegal characters in path. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JoinsWithNET.aspx.cs" Inherits="JoinsWithNET" %> Line 2: Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
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.Web.UI.HtmlControls; using System.Data; using System.Security; using System.Collections; using System.Web.UI.WebControls.WebParts; using System.Configuration; public partial class JoinsWithNET : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void txtSelf_Click(object sender, EventArgs e) { string strConn = "Data Source=CIODEV03\\SQLEXPRESS;Initial Catalog=EmployeeDB;Integrated Security=True"; SqlConnection conn = new SqlConnection(strConn); SqlDataAdapter ada = new SqlDataAdapter("Northwind", conn); DataTable dtNorthwind = new DataTable(); ada.Fill(dtNorthwind); grdvSelf.DataSource = dtNorthwind.DefaultView; grdvSelf.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)