Hi everyone,
I have added a form view in my page, and set a datasource control. But when i run my application the following error occur
"SqlDataSource2 is already declared as Protected WithEvents SqlDataSource2 As System.Web.UI.WebControls.SqlDataSource in this class"
I am using PostgreSQL database as backend, as this is client requirment.
Please help me in this regard.
Try changing the name of the data source to something else.
Hi,
Check in your code for SqlDataSource2 been delcared 2 times.
Also check this site, might be helpful to u:
http://forums.asp.net/t/1174418.aspx/1
Many Thanks for your reply. I have tried that, but the problem is still there
At this stage I would remove the SQL data sources with this name, recompile and then add the one SQL data source again and don't give it that name.
Thanks, Problem solved
沒有留言:
張貼留言