ObjectDataSource DataObjectTypeName property

by lichen 11/7/2006 5:56:00 PM

When ObjectDataSource updates or inserts data through the underlying Data Access Object, it can either supply a list of parameters or a single object that contains the parameters with its properties.

To work in the former mode, set the DataObjectTypeName property to blank. To work in a later mode, set the property to the type name of the object passed.

When binding an ObjectDataSource to a stronlgy-typed table adaptor, the Wizard will automatically set the DataObjectTypeName to Sytem.Guid. This is in correct. It is necessary to clear it for the program to work. Otherwise, we would get:

“Could not find a property named 'xxx' on the type specified by the DataObjectTypeName property in ObjectDataSource 'ObjectDataSource1'.“

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | ASP.NET

Related posts

Comments are closed

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2012

      Sign in