You can always set a breakpoint and step through the code, Visual Studio will handle attaching to the proper process running on the SharePoint server for you. Make sure you are getting data back from the “ExecuteReader” method of the SqlCommand object. If you are getting data back make sure you are calling the “DataBind” method of the DropDownList control and that you add the control the WebPart’s Controls collection property.
Using a VM is a great option because you can take snapshots of your configuration and revert changes back to the snapshot. Running Server 2008 is the easiest for installation and arguably the best for consistency although you can modify the SharePoint installation to work on Windows 7. There is also a boot to VHD option with a Windows 7 machine that will allow you to boot into a different OS such as Server 2008 installed in a VHD file.
thank you very much for the video and just wanted to ask you a question, about the SharePoint development environment setup and its recommend to have a VM with Windows Server and Visual Studio on it, use this for development. is that correct?
The Visual Studio 2010 SharePoint templates expect you to have a local installation of SharePoint 2010. While it’s probably possible to develop on a machine without SharePoint installed you would probably have to create and package them manually, i.e. not use the SharePoint project templates. Using the templates is the recommended route especially since it automatically creates package files that can easily be moved from your development machine to a production server.
Is it possible to use VS to develop the web part while SharePoint is installed on another server in the network? I am getting an error from VS saying SP is not installed...
You can always set a breakpoint and step through the code, Visual Studio will handle attaching to the proper process running on the SharePoint server for you. Make sure you are getting data back from the “ExecuteReader” method of the SqlCommand object. If you are getting data back make sure you are calling the “DataBind” method of the DropDownList control and that you add the control the WebPart’s Controls collection property.
WebucatorTraining 1 month ago
Hi I have an issue with my code. When I debug it and deploy it, it only shows the name of the webapp but doesnt do anything. Any suggestions?
Larreeeh 1 month ago
Great video thanks. Wondering, do you have any videos showing any of the following?
1 - creating an entire SharePoint page from VS as an aspx opposed to just a web part?
2 - Creating a web part to provision a site?
Much appreciated!
swbo10166 3 months ago
Using a VM is a great option because you can take snapshots of your configuration and revert changes back to the snapshot. Running Server 2008 is the easiest for installation and arguably the best for consistency although you can modify the SharePoint installation to work on Windows 7. There is also a boot to VHD option with a Windows 7 machine that will allow you to boot into a different OS such as Server 2008 installed in a VHD file.
WebucatorTraining 6 months ago
do you have more video on sharepoint web part? can you redirect me - thanks
abuhamzah09 6 months ago
thank you very much for the video and just wanted to ask you a question, about the SharePoint development environment setup and its recommend to have a VM with Windows Server and Visual Studio on it, use this for development. is that correct?
abuhamzah09 6 months ago
The Visual Studio 2010 SharePoint templates expect you to have a local installation of SharePoint 2010. While it’s probably possible to develop on a machine without SharePoint installed you would probably have to create and package them manually, i.e. not use the SharePoint project templates. Using the templates is the recommended route especially since it automatically creates package files that can easily be moved from your development machine to a production server.
WebucatorTraining 7 months ago
Great video.
Is it possible to use VS to develop the web part while SharePoint is installed on another server in the network? I am getting an error from VS saying SP is not installed...
marcus83frazier 7 months ago
great job
jagadishkonduru 1 year ago