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

Top 5 Contributors of the Month
Post New Web Links

FieldTemplateUserControl - maybe?

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :ASP.Net
Hello All, I've been searching for a way to dynamically retrieve an employees Name from my Employee table. Typically, the url looks like this: http://website/Employees/Details.aspx?EmployeeID=874 I have a custom field template and I'm trying to do something like this:<asp:Label runat="server"><%= (Employee.First Name + " " + Employee.LastName ) %> </asp:Label><br /> It doesn't work. Do I need to use FieldTemplateUserControl in the code behind file? Thanks, Jeff  

View Complete Post

More Related Resource Links

FieldTemplateUserControl CompareValidator - Localize DataType Check ErrorMessage


 Just a (simple) question, whom I don't have a simple answer for:

Why the CompareValidator that comes with some of the FieldTemplateUserControls cannot be localized/customized (in its error message) using the usual ValidationAttribute mechanism (ie. by exploiting an enhanced version of the DataTypeAttribute)?
That is curious (at least).

Thanks in advance.

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