Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

        <asp:GridView ID="GridView1" runat="server" AllowPaging="True"
            AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
            AutoGenerateEditButton="True" AutoGenerateSelectButton="True" CellPadding="4"
            DataKeyNames="emp_Id" DataSourceID="SqlDataSource1" ForeColor="#333333"
            GridLines="None">
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="emp_Id" HeaderText="emp_Id" InsertVisible="False"
                    ReadOnly="True" SortExpression="emp_Id" />
                <asp:BoundField DataField="emp_name" HeaderText="emp_name"
                    SortExpression="emp_name" />
                <asp:BoundField DataField="father_name" HeaderText="father_name"
                    SortExpression="father_name" />
                <asp:BoundField DataField="age" HeaderText="age" SortExpression="age" />
                <asp:BoundField DataField="sex" HeaderText="sex" SortExpression="sex" />
                <asp:BoundField DataField="dob" HeaderText="dob" SortExpression="dob" />
                <asp:BoundField DataField="nationality" HeaderText="nationality"
                    SortExpression="nationality" />
                <asp:BoundField DataField="state" HeaderText="state" SortExpression="state" />
                <asp:BoundField DataField="city" HeaderText="city" SortExpression="city" />
                <asp:BoundField DataField="mobile_no" HeaderText="mobile_no"
                    SortExpression="mobile_no" />
                <asp:BoundField DataField="exp" HeaderText="exp" SortExpression="exp" />
                <asp:BoundField DataField="qual" HeaderText="qual" SortExpression="qual" />
                <asp:BoundField DataField="emp_sal" HeaderText="emp_sal"
                    SortExpression="emp_sal" />
                <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
            </Columns>
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:ABCConnectionString2 %>"
            SelectCommand="SELECT * FROM [emp_details]" DeleteCommand= "delete from emp_details where emp_name='" + DropDownList1.SelectedItem.Text + "' ">
            </asp:SqlDataSource>

    </div>
    </form>
</body>
</html>
Posted
Comments
Member 11586797 11-Apr-15 5:19am    
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: The server tag is not well formed


this is d error

We can't tell from that.
Go back to your error message, and look closely - they normally either give you the line numbers and a explanation of what the problem was, or they give you instructions on what to do to get that information.

And without it, nobody can do anything, pretty much.
 
Share this answer
 
There may be many reasons for this type of error. Please debug the app and see where exactly it is breaking.

Catch the exception, if you have not yet. Analyze the stack trace and inner exception for more details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900