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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Could not find a property on the type specified by the DataObjectTypeName property

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :ASP.Net

Hi - I need some help:

1. I'm using a ListView using an ObjectDataSource which has CRUD operations implemented by a biz objects layer sitting between the UI and the SQL DB. 

2. The Biz Objects layer consists of partial classes which extend the functionality of a series of entity objects created by Linq2SQL. 

3. The ObjectDataSource makes use of DataObjectTypeName which is set to the resume_school entity object generated by Linq2SQL.

4. The resume_school object has a property - "school" which is a child entity - also created by Linq2SQL.  The school object has it's own properties and is related to the resume_school object via a relationship created by their common "school_id" fields.

5. I am successfully using, as an example <%# Eval("school.school1") %> to bind to a label control embedded in the Select Template.

6. Similarly, I am successfully using <%# Bind("school.school1") %> to bind to a textbox control embedded in the Edit Template.

7. Both of these find and return the correct data from the DB.

8.  When I click on "Update" while in Edit Mode, I get the following error msg:

Could not find a property named 'school.school1' on the type specified by the DataObjectTypeName property in ObjectDataSource 'ObjectResumeEducationData'.


View Complete Post

More Related Resource Links

The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be f



I want to display report in aspx page. For that I created Report1.rdlc file and as DataSource DataSet1. After that I created Report1.aspx file and drag the ReportViewer1 and I 'choose the Data Source' and my report. Now when I try to run my aspx file I got the following error

The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found.


My Report1.aspx file is as follow

<rsweb:reportviewer id="ReportViewer1" runat="server" font-names="Verdana" font-size="8pt" height="400px" width="400px">

LocalReport ReportPath="C:\MAIN\badging\Reports\Report1.rdlc">

Problem in Custom Control Unable to find Control To Validate Property


I make a custome control by taking a TextBox and A Regular Expression Validator.When i Use this on a .aspx page it works fine.But when i use this on .ascx page and dynamically load user control on a place holder in .aspx page it through an Error

Unable to find control id '_ctl0:txtEmail' referenced by the 'ControlToValidate' property of '_ctl0:txtEmailRequired'


My Custome control Code is this"--

public class EmailValidator:System.Web.UI.Control, INamingContainer{

private System.Web.UI.WebControls.TextBox textBox;

private System.Web.UI.WebControls.RegularExpressionValidator regularExpressionValidator;

public EmailValidator(){

textBox = new TextBox();

regularExpressionValidator = new RegularExpressionValidator();

IsErrorTextBelow = true;

IsRequired = false;

How to make the Property Name and Type readonly for a PropertyEditor ?

Hi As part of my project I am using a custom PropertyEditor, which is inherited from  DialogPropertyValueEditor and overriden the ShowDialog method. As an Input, I am providing a Dictionary<string, InArgument> to the property editor. The property editor is openning properly and I am able to provide values for various properties in the Editor. But, the editor is allowing to change the Property name and Type. How can we make the property name and type readonly ? Regards Ambily IT Analyst DialogPropertyValueEditor

SSRS 2008 R2 Dataset Field Value Property Data Type not numeric

We're building SSRS 2008 R2 reports using SSAS as data sources.  There are several occaissions where the data types of certain dataset field values that represent cube measures are not numeric.  As such, when these fields are used in an aggregate function they throw an error.  Is there a way to remedy this in the dataset? Thanks for your help.

How to find property references?

Hi, I want to find the references of a property programatically ( example: List of methods in which the property is referred. I did extensive search on google, but did not help.  Can someone shed some light on this. 1. I got the list of properties using reflection 2. Now I want to get the list of method which uses the properties.Harinatha

Display Property Type in EDM


Is it possible to display the data type of an entities properties in the Designer?  For instance I have a dateofbirth property for my Person Entity. In the designer I want it to show "dateofbith    datetime" 

This would be helpful when printing out the entity model to paper.



Property Array of other Property Type



I am making use of two property classes, between them one is type is that of other property array type, it has the following code:

public class Entities
        private Property[] employeeInfo;
        public Property[] EmployeeInfo

The property 'Label' was not found in type 'RibbonCheckBox'




I am using the Ribbon (v3.5.31016.1) in one application and I was trying to use some checkboxes, however it says that the checkbox has not got the property LABEL?

 <r:RibbonCheckBox x:Name="chkBox" Label="My check box" Click="chkBox_Click"></r:RibbonCheckBox>

How should I display the text for the ribboncheckbox?


Web Part property of type "Managed Metadata"


I want to build a custom web part where the user filters the results by selecting a term from a managed metadata property. I want this property to appear in that "Edit Web Part" property panel.

I know if I want to expose a simple string property, I just add the following attributes:




WebDescription("Select the category to filter your results.")]

public string Filter{





How do you do the same thing...but with a managed metadata datatype?

(Not to confuse the question...but the managed metadata datatype I want to show is defined as a Site Column. How can I expose that to a web part property?)


Any help would be appreciated.


Passing a user defined type property to WCF contract



i have a class with a user defined type as follow.

[DataContract(Namespace = "a.com")]
  public class Order : IOrderDescription, INotifyPropertyChanged
    public static OrderLimitations OrderLimits { get; set; }
    public OrderLimitations ThisOrderLimits { get; set; }
    public OrderAlgorithmDescription AlgoDescription { get; set; }

 [DataContract(Namespace = "a.com")]
  public class OrderAlgorithmDescription
    public OrderAlgorithmName AlgorithmName { get; set; }
    public DateTime UTCStartTime { get; s

Determine node type selected in TreeView and reading property values


I am hoping that someone can help me get past some problems I am having when using the WPF TreeView control.  I have a TreeView that at most can have 3 levels.  The levels are defined as Project, Discipline, Person which would look like the following:

+ Project

    + Discipline

        - Person

My TreeView is bound to a database using two HierarchicalDataTemplate's and then one DataTemplate (the binding is done in the XAML).

What I would like to get is the following information when selecting an item:

  1. Read the selected value (text of the selected node)
  2. Binding a ValidationRule property - Cannot find source for binding with reference 'ElementName=...'



    I'm playing around with a custom ValidationRule that will make sure date 1 is less than date 2 (or visa versa). My ValidationRule exposes a public property for date2. If I want to explicitly set the date, that would be enough, but I wanted to be able to bind date2 to the SelectedDate of a DatePicker control. So I changed my ValidationRule's property type to a custom class, named DependencyDate, which exposes a date as a dependency property. Now I should be able to apply my ValidationRule to the binding on one DatePicker and bind the date 2 to another DatePicker's SelectedDate. The problem is, my binding is yielding the message "Cannot find source for binding with reference 'ElementName=dtEnd'". Here is the code:

    <DatePicker Grid.Column="1" Name="dtStart">

    WPF / Silverlight tutorial: Visibility property and binding

    Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property

    abstract away the source of the connection string using a class with a static property.

    ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.

    The element of a web.config file is a place to store connection strings, server names, file paths, and other miscellaneous settings needed by an application to perform work. The items inside appSettings are items that need to be configurable depending upon the environment, for instance, any database connection strings will change as you move your application from a testing and staging server into production.

    Let's abstract away the source of the connection string using a class with a static property.

    Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

    n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

    Get Pixel Format:

    Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

    To demonstrate make a window application. Drag one button and a picture box on form.

    Now write the following code on Button click event:

    Jscript error: Object does not support property or method


     Hi, i have little knowledge on javascript but i need to use this code get from somewhere for a jquery to work.

    I face this "Jscript runtime error: Object does not support property or method" whenever im trying to run this page.

    In my experience, im get this error msg 9 out of 10 times i use javascript in my system.

    Im using Microsoft Visual web developer 2008, i wonder if this is related to my problem, i not sure there is anything i need to add as reference or update anything.

    But anyway, in short, i just couldn't use javascript code when using this development tool because of this sort of error.

    Anyway, it happen that last time i tried use the same type of jquery code in another project and it seems to work well without an error.

    But now when im try to use it again in this recent project i created, it come out with this error and i have no idea how to solve it even look through google and this forum.

    It doesn't really seems like its the code problem itself although im not sure, because any javascript code just couldn't work.

    So below is my code that i need to use.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
    <script type="text/javascript" src=&quo

    Is it possible to populate property choices from a database?


    I'm creating my first server control, and have it working where I can set up an enum and the user can set a property's choices,  based off of that enum.  But I'd like it to pull records from a database and populate the list of choices for the property from a database.  This would allow me to add a new "Host System" to the database, and the other designers wouldn't have to get a new copy of the dll.



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