.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

Property Array of other Property Type

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


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

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">

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.

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.



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

how to insert a path file into an array and listview using openfiledialog with multiselect property?



i have problem to insert path file into an array and listview(detail) using open file dialog wit multiselect property, please give me sample to make it?

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. Accessing an Array of Strings Property from WCF Client


    First let me apologize for the elementary question, but I’m not a developer by trade and only have to put that hat on when needed for work.  However, I’ve written a WCF service that contains an array of strings as a DataMember .

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.ServiceModel;
    using System.Runtime.Serialization;
    namespace OBCreateEForm
      public class EForm
        [DataMember(IsRequired=true, Name="EFormDocTypeName", Order=0)]
        public string EFormDocTypeName { get; set; }

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


    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'.


    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.



    Custom Server Control Property not maintaining state


    I have created a server control consisting of a TextArea and a div under it.  My goal is to create my own asp:TextArea type control.  the div is for a Character count of the text area and seems to work ok but i added a CharacterCountVisible property to the control that is always returning true.  See Proptery definition below


    <Bindable(False), Category("Appearance"), DefaultValue("True"), Localizable(True)> Property CharacterCountVisible() As Boolean
            Return _CountBoxVisible
        End Get
        Set(ByVal value As Boolean)
            _CountBoxVisible = value
        End Set
    End Property

    Note the _CountBoxVisible variable is define inside the class as :

    Dim _CountBoxVisible as Boolean = True

    What I am trying to do is give the user/coder the option to show/utilize the char count feature.  Can make it disappear with textarea1.CharacterCountVisible = False but setting it to true will not make it display.


    What am i missing





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