开发者

Cannot drag and use EntityDataSource element from toolbox

开发者 https://www.devze.com 2023-03-30 16:44 出处:网络
I\'m working on a web application on .NET4 using VS 2010. I\'ve created an ADO.NET Entity Data Model (and put in the App_Code folder).

I'm working on a web application on .NET4 using VS 2010. I've created an ADO.NET Entity Data Model (and put in the App_Code folder). However when trying to drag the EntityDataSource element to the Design view, nothing really happens (no EntityDataSource element is reaching the page). I must note that although this element exists in the toolbox it doesn't have its unique icon it supposed to have.

I've tried to overcome the problem by first dragging the ListView i'm planning to use and then choose the datasource I would like to use with it, but then I get the following options: Access Database, SQL DataBase, LINQ, Object, Site Map, XML File --- but开发者_C百科 no 'Entity' (the option I'm looking for).

I'll appreciate if someone can help me here!


It seems that although the EntityDataSource element appeared in the Toolbox (as I've mentioned earlier - with some generic icon next to it), it wasn't really there, and had to be added by:

  1. Selecting Choose Items... in the data tab of the Toolbox
  2. Choosing the EntityDataSource from the .NET Framework Components tab

Now two EntityDataSource exist in the Toolbox - the initial one (cannot be dragged and used) and the 'real' one with its unique icon which can be dragged and used.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号