AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 source errror
Posted by songuku on  11/17/2010 2:17:43 AM Category: ADO.NET
Add to my favorites
Email to friend
gvwTypeOfMail.DataBind();


[InvalidOperationException: Both DataSource and DataSourceID are defined on 'gvwTypeOfMail'. Remove one definition.]

Post Your Reply Post New Question

 Viewer's Reply
RE: InvalidOperationException: Both DataSource and DataSourceID are defined
Answered By Moderator1 on 11/17/2010 11:53:19 PM
Hi,

You need to remove any one. If you are using SQLDataSource, then go for DataSourceID.. If you are binding the GridView with DataSet or DataTable, then use DataSource.
 
[InvalidOperationException: Both DataSource and DataSourceID are defined on 'gvwTypeOfMail'. Remove one definition.]
Answered By songuku on 11/18/2010 12:11:54 AM
hi.
thanks a lot. i finish my excercise.then i have problem, i can't do paging in gridview.can you help me?
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
FierceDeveloper
Introduction to Software Development
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter