Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.

Source Error: 


Line 31:                 </ItemTemplate>
Line 32:                 <EditItemTemplate> 
Line 33:                 <asp:TextBox ID="txtFirstname"'<%# Eval("Firstname") %>'   runat= "server" />
Line 34:                   </EditItemTemplate>
Line 35:                <FooterTemplate>

Source File: /default.aspx    Line: 33 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0


What I have tried:

i cant continue this please help
Posted
Updated 12-May-19 22:53pm

1 solution

Replace this:
ASP.NET
<asp:TextBox ID="txtFirstname"'<%# Eval("Firstname") %>'   runat= "server" />

with:
ASP.NET
<asp:TextBox ID="txtFirstname" Text='<%#Eval("Firstname")%>' runat= "server" />


Do you see the difference?
 
Share this answer
 
v2
Comments
CPallini 13-May-19 4:58am    
5.
Maciej Los 13-May-19 5:24am    
Thank you, Carlo.
TheRealSteveJudge 13-May-19 5:01am    
5*
Maciej Los 13-May-19 5:24am    
Thank you, @TheRealSteveJudge.
Richard Deeming 14-May-19 12:10pm    
For the ASP.NET TextBox control, the property name is Text, not Value. :)

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