The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Databinding problems in v1021

Last post 10-25-2007, 12:35 PM by Granticus. 10 replies.
Sort Posts: Previous Next
  •  10-23-2007, 2:45 AM 5979

    Databinding problems in v1021

    Looks like the old databinding problems could be back in beta 1021...

    Used to work: 

                StateCollection states = new StateCollection();
                states.LoadAll();

                StateDdl.DataSource = states;
                StateDdl.DataTextField = "Code";
                StateDdl.DataValueField = "Code";
                StateDdl.DataBind();

    But now: 

     

    HttpException (0x80004005): DataBinding: 'System.Char' does not contain a property with the name 'Code'.]
       System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +197
       System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName, String format) +11
       System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) +333
       System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +104
       System.Web.UI.WebControls.ListControl.PerformSelect() +31
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
       MyProject.Web.Controls.AddressForm.Page_Init(Object sender, EventArgs e)
     

    And in a bunch of DropDownLlist and GridView bindings:

    The IListSource does not contain a data source named ''.  Check your DataMember value. 

     

    I'll post some more info if necessary but I'm assuming for now this is a re-occurrence of old issues...

     

  •  10-23-2007, 5:56 AM 5984 in reply to 5979

    Re: Databinding problems in v1021

    Very strange, we tested a ton of databinding scenarios? Is this ASP.NET or Windows.Forms? Also, what is the exact type of control of your StateDdl?
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  10-23-2007, 6:23 AM 5987 in reply to 5984

    Re: Databinding problems in v1021

    It's a good old-fashioned ASP.NET 2.0 System.Web.UI.WebControls.DropDownList.

    Cheers,
                  Fraser.



     

  •  10-23-2007, 7:11 AM 5995 in reply to 5984

    Re: Databinding problems in v1021

    Just to confirm...

    I reverted to the 2007.0.730.0 DLLs and the corresponding Generated classes, and data binding works again...

    Cheers,
                 Fraser.


     

  •  10-23-2007, 5:30 PM 6010 in reply to 5995

    Re: Databinding problems in v1021

    (And of course I did a clean build, reset IIS and cleared out the Temporary ASP.NET files...)
  •  10-23-2007, 6:02 PM 6011 in reply to 5995

    Re: Databinding problems in v1021

    This is fixed, will be posting v1024 tonight, it's was a one line mistake, works great now, there's a little surprise in there too, if you're using esDataSource you shouldn't have to drill around to your dll any longer, it should just come right up with your collections already listed. I'll post back when it's posted a few hours from now.
  •  10-23-2007, 6:44 PM 6012 in reply to 6011

    Re: Databinding problems in v1021

    Awesome!  You guys rock!  :-)

     

  •  10-23-2007, 7:45 PM 6014 in reply to 6012

    Re: Databinding problems in v1021

    The new build is up, let me know if it works for you, it should. See the release notes in the announcements. Oh, and we put the version number below the download button on the home page now so you can tell what version you're downloading if you're using our Trial Version.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  10-24-2007, 12:46 AM 6017 in reply to 6014

    Re: Databinding problems in v1021

    Works a treat with 1024!
  •  10-24-2007, 4:48 AM 6023 in reply to 6017

    Re: Databinding problems in v1021

    Yes

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  10-25-2007, 12:35 PM 6069 in reply to 6014

    Re: Databinding problems in v1021

    Mike.Griffin:
    Oh, and we put the version number below the download button on the home page now so you can tell what version you're downloading if you're using our Trial Version.

     

    Thank you.  Now it's easy to tell from just looking at the home page what the latest build is. 


    ES 2008.1.1110.0
    VS 2008 Pro SP1 on Vista Ultimate x64
    SQL Server 2000
View as RSS news feed in XML