473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Parser Error: The 'Text' property of 'asp:TextBox' does not allow child objects.

hi,
in my ASP.net page I am using the following

<asp:RequiredFieldValidator runat="server" ErrorMessage="Item Name cannot be blank" ControlToValidate ="txtitmname"></asp:RequiredFieldValidator>

This is my code

<asp:Panel runat="server" ID="panel1" CssClass="modalPopup" align="center" style ="display:none"> <div class="header">
Add New Item
</div> <br /> <asp:Label runat="server" Text=" Enter Item Name"></asp:Label><br /> <asp:TextBox runat="server" ID="txtitmname"> <asp:RequiredFieldValidator runat="server" ErrorMessage="Item Name cannot be blank" ControlToValidate ="txtitmname"></asp:RequiredFieldValidator></asp:TextBox><br /><br /> <asp:Button runat="server" ID="btnok" Text="Ok" onclick="btnok_Click"> </asp:Button> <asp:Button runat="server" ID="btncancel" Text="Cancel"></asp:Button> </asp:Panel>

but it gives me this error
The 'Text' property of 'asp:TextBox' does not allow child objects.

Please let me know how to resolve this.
Thanks
Aug 30 '16 #1
0 1965

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jerry Tovar | last post by:
I am using .Net 2003. I am trying to build ASP.Net applications, however whenever I build my project and then try to view the webform in a browser, I keep getting the following Parser Error. I...
0
by: Trevor Oakley | last post by:
ASP NET ======= I am learning ASP.NET, Visual C#, C# via some books; I have shared web space using Windows, and STANDARD Visual C# (no server option on SERVER EXPLORER). ERROR =====
6
by: dhnriverside | last post by:
Hi peeps Ok, I've got a web application running (lets call it MyApp, so its namespace is MyApp). I've created a subdirectory within this application called "secure", and made than an Application...
3
by: murphy | last post by:
Hi, I've been seeing two symptoms with my asp.net site that have started recently after a long period of smooth running. As others on our team make changes to referenced dll's I find that I...
1
by: dotNetDave | last post by:
I keep getting the following error on one of my web service pages: Parser Error Parser Error Message: Could not create type 'SyPixx.Web.ClearService.ConfigureAlarms'. Source Error: Line 1: ...
1
by: Roshan | last post by:
Hi, In NTFS all folders/container objects have an option called 'Replace permission entries on all child objects with entries shown here that apply to child objects' As I understand this...
1
by: DesperateDan | last post by:
I've got a parent object that is a collection and it in turn is hosting 2 child objects. My searlization has worked perfectly to plan in as much that I wanted to dictate the names of the objects...
1
by: Priya27 | last post by:
XML parser error: End tag ‘HEAD’ does not match the start tag ‘LINK’ How to resolve this error in VPN environment
4
by: iporter | last post by:
I wonder if anyone can clear up an OOP issue for me, specifically, how to have multiple child objects of a parent object. Consider the code below: var parentObj={ childCount: 0, childObj: {...
1
by: Enij | last post by:
Hi All, Long story short, I have created a ListView type control, using UserControls for the parent control and the ListViewItems. Most the of the control is written and works fine, right up to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.