0

Error : SERVER TAG NOT WELL FORMED,
why ?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="employerView_ScrutinyMembers.aspx.cs" Inherits="employerView_ScrutinyMembers" %>

<!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>Scrutiny Members</title>
</head>
<body>
    <form id="form1" runat="server">

    <div>
        <asp:TextBox ID="txtboxMemberName" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="Search" 
            onclick="btnSearch_Click" />
        Or
        <asp:Button ID="btbViewall" runat="server" Text="View All" 
            onclick="btbViewall_Click" />

        <br /> <br />
        <asp:GridView ID="GridViewAllScrutinyMembers" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
            DataKeyNames="memberId" DataSourceID="SqlDataSource1" ForeColor="#333333" 
            GridLines="None">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="memberId" HeaderText="memberId" 
                    InsertVisible="False" ReadOnly="True" SortExpression="memberId" />
                <asp:BoundField DataField="memberName" HeaderText="memberName" 
                    SortExpression="memberName" />
                <asp:BoundField DataField="memberRole" HeaderText="memberRole" 
                    SortExpression="memberRole" />
                <asp:BoundField DataField="memberSignature" HeaderText="memberSignature" 
                    SortExpression="memberSignature" />
                <asp:BoundField DataField="memberDetails" HeaderText="memberDetails" 
                    SortExpression="memberDetails" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:Waleed_orsfinalConnectionString43 %>" 
            DeleteCommand="DELETE FROM [tblMembers] WHERE [memberId] = @memberId" 
            InsertCommand="INSERT INTO [tblMembers] ([memberName], [memberRole], [memberSignature], [memberDetails]) VALUES (@memberName, @memberRole, @memberSignature, @memberDetails)" 
            SelectCommand="SELECT * FROM [tblMembers]" 
            UpdateCommand="UPDATE [tblMembers] SET [memberName] = @memberName, [memberRole] = @memberRole, [memberSignature] = @memberSignature, [memberDetails] = @memberDetails WHERE [memberId] = @memberId">
            <DeleteParameters>
                <asp:Parameter Name="memberId" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="memberName" Type="String" />
                <asp:Parameter Name="memberRole" Type="String" />
                <asp:Parameter Name="memberSignature" Type="String" />
                <asp:Parameter Name="memberDetails" Type="String" />
                <asp:Parameter Name="memberId" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="memberName" Type="String" />
                <asp:Parameter Name="memberRole" Type="String" />
                <asp:Parameter Name="memberSignature" Type="String" />
                <asp:Parameter Name="memberDetails" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>

        <asp:GridView ID="GridViewSearchByName" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="memberId" 
            DataSourceID="SqlDataSource2">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="memberId" HeaderText="memberId" 
                    InsertVisible="False" ReadOnly="True" SortExpression="memberId" />
                <asp:BoundField DataField="memberName" HeaderText="memberName" 
                    SortExpression="memberName" />
                <asp:BoundField DataField="memberRole" HeaderText="memberRole" 
                    SortExpression="memberRole" />
                <asp:BoundField DataField="memberSignature" HeaderText="memberSignature" 
                    SortExpression="memberSignature" />
                <asp:BoundField DataField="memberDetails" HeaderText="memberDetails" 
                    SortExpression="memberDetails" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:Waleed_orsfinalConnectionString44 %>" 
            DeleteCommand="DELETE FROM [tblMembers] WHERE [memberId] = @memberId" 
            InsertCommand="INSERT INTO [tblMembers] ([memberName], [memberRole], [memberSignature], [memberDetails]) VALUES (@memberName, @memberRole, @memberSignature, @memberDetails)" 
            SelectCommand="SELECT * FROM [tblMembers] where memberName LIKE @memberName +'%' ";
            UpdateCommand="UPDATE [tblMembers] SET [memberName] = @memberName, [memberRole] = @memberRole, [memberSignature] = @memberSignature, [memberDetails] = @memberDetails WHERE [memberId] = @memberId">
            <DeleteParameters>
                <asp:Parameter Name="memberId" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="memberName" Type="String" />
                <asp:Parameter Name="memberRole" Type="String" />
                <asp:Parameter Name="memberSignature" Type="String" />
                <asp:Parameter Name="memberDetails" Type="String" />
                <asp:Parameter Name="memberId" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="memberName" Type="String" />
                <asp:Parameter Name="memberRole" Type="String" />
                <asp:Parameter Name="memberSignature" Type="String" />
                <asp:Parameter Name="memberDetails" Type="String" />
            </InsertParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="txtboxMemberName" Name="memberName" DbType="String" PropertyName="Text" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
2
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by JorgeM
1

Its an indication of a syntax error somewhere. I'm on a mobile deivice right now so its hard for me to debug this at the moment.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.