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
Take Advantage of Oracle's 2 Day DBA Course
No Nonsense XML Web Development With PHP - Free 146 Page Preview!
FierceDeveloper