Fraser_Admin
asked on
converting a vs 2003 ap to vs 2010
i have a datagrid control which i was expecting to run into problems with when i converted to 2010.
i created a 2010 solution and did an add existing web site to pull in the 2003 ap. I was expecting the conversion wizard to come up but it didn't. It came in without errors just a bunch of warnings. So the ap runs fine...datagrid shows and everything.
So i'm wondering if there is a setting somewhere...maybe its my web.config? that is allowing this control to work. I don't see the datagrid control in my toolbox, but if i view in design pane the control shows up fine.
thanks
i created a 2010 solution and did an add existing web site to pull in the 2003 ap. I was expecting the conversion wizard to come up but it didn't. It came in without errors just a bunch of warnings. So the ap runs fine...datagrid shows and everything.
So i'm wondering if there is a setting somewhere...maybe its my web.config? that is allowing this control to work. I don't see the datagrid control in my toolbox, but if i view in design pane the control shows up fine.
thanks
No. For an ASP.Net app, unless you changed the underlying .NET Framework, there's no coversion necessary.
ASKER
where do i change the underlying framework. i want to use 4.0 not the one that is commonly used with vs 2003.
if i right click on the web site and choose property pages the framework here shows as 4?
if i right click on the web site and choose property pages the framework here shows as 4?
Yes, in the Property Pages for the web site, in the "Build" section, set the Target Framework to whatever you want to use.
Datagrid is still available in .NET 4
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid(v=vs.100).aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid(v=vs.100).aspx
ASKER
I thought other aps I converted to .NET 3.5 chocked with datagrid. Was it not allowed in 3.5 but now allowed in 4? Funny I don't see it under the toolbox??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And it exists in 3.5 as well. I think its the DataGrid in winforms that was replaced by DataGridView.