.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

I was wondering how I fix this

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :ASP.Net
 

My code is

<asp:TemplateField HeaderText="PODate"g SortExpression="POdate">
                    <EditItemTemplate>
                     <asp:TextBox ID="podate" runat="server" Text='<%# Bind("PODate") %>'></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="podate" ErrorMessage="Date is needed!">*</asp:RequiredFieldValidator>

              
                    </EditItemTemplate>


and I get this. Could anyone please suggest what I need to do. Thanks

Parser Error Message: System.Web.UI.WebControls.DataControlFieldCollection must have items of type 'System.Web.UI.WebControls.DataControlField'. 'EditItemTemplate' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.




View Complete Post


More Related Resource Links

Wondering about example HttpCookieSession

  

Hi there,

As usual, I almost read examples from Microsoft only. The example is

http://msdn.microsoft.com/en-us/library/ms751405.aspx

class HttpCookieOutputSession : IOutputSession

        {

            string id;

 

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend