Unknown server tag asp:ControlParameters.

Last Reply on Feb 24, 2013 11:41 PM By Mudassar

Posted on Feb 24, 2013 11:41 PM

I keep getting a db parser error.  I took it from my text book assignment.  Here is the error and code:  I am confused with the problem


Server Error in '/' 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: Unknown server tag 'asp:ControlParameters'.


<%@ Page Language="C#" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<style type="text/css">
td, th
<title>Show Filter Expression</title>
<form id="form1" runat="server">
Runat="server" />

Runat="server" />
<hr />

Runat="server" />
SelectCommand="SELECT Id, Name, Color, Gravity, Type FROM Grain"
FilterExpression="Name LIKE '{0}%'"
ConnectionString="<% ConnectionStrings:Grain %>"
<asp:ControlParameters Name="Name" ControlID="txtGrain" />



Source Error: 

Line 38:         Runat="server"> Line 39:         <FilterParameters> Line 40: <asp:ControlParameters Name="Name" ControlID="txtGrain" /> Line 41:             </FilterParamaters> Line 42:             </asp:SqlDataSource>

Source File: /Unit7.aspx    Line: 40

Posted on Feb 24, 2013 11:41 PM

Try Re-Building the project


I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html