PDA

View Full Version : سوال: DynamicField



salar IT man
جمعه 16 خرداد 1393, 17:48 عصر
سلام دوستان .

امکان استفاده از DynamicField تو DetailsView نیست؟ چون هنگام استفاده ارروری به این صورت میده


Could not determine a MetaTable. A MetaTable could not be determined for the data source 'ObjectDataSource1' and one could not be inferred from the request URL. Make sure that the table is mapped to the data source, or that the data source is configured with a valid context type and table name, or that the request is part of a registered DynamicDataRoute.


خودمم تو نت گشتم ولی همه گفته بودن که از BoundField استفاده کنین.ولی من چون با EF کار میکنم میخوام Validation هارو اینجا نشون بدم .
لطفا راهنمایی کنید

salar IT man
جمعه 16 خرداد 1393, 18:00 عصر
دوستان حل شد . این DetailsView یه خصوصیت داره به نام ItemType باید اسم اون کلاسی که تو مدل بود رو میدادم بهش .