<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Visual Studio 2010 Visual Web Part Project</title>
	<atom:link href="http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/feed/" rel="self" type="application/rss+xml" />
	<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/</link>
	<description>Microsoft, SharePoint, ASP.NET, Software Solutions</description>
	<lastBuildDate>Wed, 16 May 2012 13:34:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: LeoMoon, Studios, Graphic, Animation, Maya, Blender, Adobe, Short Film</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-3160</link>
		<dc:creator>LeoMoon, Studios, Graphic, Animation, Maya, Blender, Adobe, Short Film</dc:creator>
		<pubDate>Thu, 03 Nov 2011 08:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-3160</guid>
		<description>&lt;strong&gt;LeoMoon, Studios, Graphic, Animation, Maya, Blender, Adobe, Short Film...&lt;/strong&gt;

[...]Visual Studio 2010 Visual Web Part Project &#8212; Gabe Hilado&#039;s SharePoint &amp; ASP.NET Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>LeoMoon, Studios, Graphic, Animation, Maya, Blender, Adobe, Short Film&#8230;</strong></p>
<p>[...]Visual Studio 2010 Visual Web Part Project &#8212; Gabe Hilado&#039;s SharePoint &amp; ASP.NET Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asp.net, c#,javascript</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-2919</link>
		<dc:creator>asp.net, c#,javascript</dc:creator>
		<pubDate>Fri, 30 Sep 2011 07:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-2919</guid>
		<description>&lt;strong&gt;asp.net, c#,javascript...&lt;/strong&gt;

[...]Visual Studio 2010 Visual Web Part Project &#8212; Gabe Hilado&#039;s SharePoint &amp; ASP.NET Blog[...]...</description>
		<content:encoded><![CDATA[<p><strong>asp.net, c#,javascript&#8230;</strong></p>
<p>[...]Visual Studio 2010 Visual Web Part Project &#8212; Gabe Hilado&#039;s SharePoint &amp; ASP.NET Blog[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedestal Table</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-690</link>
		<dc:creator>Pedestal Table</dc:creator>
		<pubDate>Sat, 29 Jan 2011 00:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-690</guid>
		<description>.-&quot; I am really thankful to this topic because it really gives up to date information ``&quot;</description>
		<content:encoded><![CDATA[<p>.-&#8221; I am really thankful to this topic because it really gives up to date information &#8220;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe Hilado</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-655</link>
		<dc:creator>Gabe Hilado</dc:creator>
		<pubDate>Thu, 28 Oct 2010 15:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-655</guid>
		<description>You&#039;re welcome Gavin!</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome Gavin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GavinB</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-653</link>
		<dc:creator>GavinB</dc:creator>
		<pubDate>Wed, 27 Oct 2010 20:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-653</guid>
		<description>Thanks Gabe &amp; John

You just saved me! I was getting the same odd null child control behaviour due to a messed up Register tag.

-Gavin</description>
		<content:encoded><![CDATA[<p>Thanks Gabe &amp; John</p>
<p>You just saved me! I was getting the same odd null child control behaviour due to a messed up Register tag.</p>
<p>-Gavin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe Hilado</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-652</link>
		<dc:creator>Gabe Hilado</dc:creator>
		<pubDate>Wed, 27 Oct 2010 14:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-652</guid>
		<description>Hi John,

Porting a full-blown ASP.NET application to run in SharePoint, if I read you right, you&#039;re creating Web parts that contain the Web controls. You&#039;ll have multiple Web parts deployed with this approach. If the SharePoint site-collection that the app will be running on also have sub-sites, these Web parts may not stand on their own feet (they came from a .NET app, some of these &quot;Web parts&quot; will probably need data to be passed to it via forms-data or querystring). My point is your SharePoint Web Part Gallery will be littered with Web parts that probably cannot be used outside of your &quot;application&quot;. I don&#039;t do these for &quot;traditional apps&quot; that I want to run in SharePoint.

I would recommend the following approaches instead:
a) Re-engineer the ASP.NET app to have Web services. You can then consume those Web services in the SharePoint pages (inline scripting)
b) Create a custom SharePoint Solution project. Just like in the ASP.NET project, you will have master-pages, Web controls, resource files such as images and JavaScripts. You package the solution as a SharePoint feature and you deploy to SharePoint. Activate the feature in SharePoint and those Web controls and pages should be available.

-Gabe</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>Porting a full-blown ASP.NET application to run in SharePoint, if I read you right, you&#8217;re creating Web parts that contain the Web controls. You&#8217;ll have multiple Web parts deployed with this approach. If the SharePoint site-collection that the app will be running on also have sub-sites, these Web parts may not stand on their own feet (they came from a .NET app, some of these &#8220;Web parts&#8221; will probably need data to be passed to it via forms-data or querystring). My point is your SharePoint Web Part Gallery will be littered with Web parts that probably cannot be used outside of your &#8220;application&#8221;. I don&#8217;t do these for &#8220;traditional apps&#8221; that I want to run in SharePoint.</p>
<p>I would recommend the following approaches instead:<br />
a) Re-engineer the ASP.NET app to have Web services. You can then consume those Web services in the SharePoint pages (inline scripting)<br />
b) Create a custom SharePoint Solution project. Just like in the ASP.NET project, you will have master-pages, Web controls, resource files such as images and JavaScripts. You package the solution as a SharePoint feature and you deploy to SharePoint. Activate the feature in SharePoint and those Web controls and pages should be available.</p>
<p>-Gabe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-649</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 24 Oct 2010 03:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-649</guid>
		<description>I just tried this on one page and it appears to work, I now see legacy aspx page contents inside my a new visual web part.

I am not certain is this is the desired approach. Any assistance would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>I just tried this on one page and it appears to work, I now see legacy aspx page contents inside my a new visual web part.</p>
<p>I am not certain is this is the desired approach. Any assistance would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-648</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 24 Oct 2010 01:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-648</guid>
		<description>Hi Gabe

I am hoping that you will be able to confirm my approach below prior to me starting as it will be quite a lot of work but I am determined and will follow this approach if it is the correct approach.

I am trying to migrate the functionality of a legacy ASP.Net application. Earlier you helped me with a particular aspect of this migration which was to wrap the ascx user controls in Visual Web parts. I am now trying to complete the migration and would love if you could provide some guidance on my approach.

The legacy ASP.Net application consists of a series of ASP.Net pages which inherit from an Asp.net Master Page.  

In the Master Page there exists two ContentPlaceHolders (cph_left, cph_center)
The first ContentPlaceHolder (cph_left) has its content filled with specific user controls that will always be there no matter what page the user is on, while the other ContentPlaceHolder (cph_center) is empty in the master page and is populated by each of the aspx pages such that the cph_center contains different content (divs, user controls etc. ) depending on the page the user was on.

In the legacy aspx page(s), the code behind has access to each instance of each ascx it has placed within the cph_center and thus is able to control them as needed. For example, depending on what options are enable, the code behind might hide or show a user control within a particular legacy aspx page. 

As you may have gathered, I am attempting to port this application over to SharePoint and I am hoping you are able to confirm my approach.

Here is what I beleive I need to do but please tell me if I am wrong; 

Step 1: 
Create a page layout which inherits from my custom master page(s) and then add my ContentPlaceHolders (cph_left, cph_center) and any additional Web part Zones to support the dropping of Visual Web Parts. 
In my custom layout page I would add the same visual web parts directly to page to ensure that the same user controls are always showing on the left side as was in the legacy application. This might also be accomplished through the use of a web part zone and customize this zone within each page.

I am fairly confident with how to do this and feel I will be able to create a page layout within Visual Studio to suit my needs. I have created some very nice master pages thus I have no issues with this step.

Step 2:  (This is the step you helped me with which is complete)

Create visual web parts based upon the ascx user controls. This worked perfectly thanks to you.  As a result I am now easily able to add these web parts to SharePoint and they access the legacy data and render as they do in the legacy application work as they did before.  The area I struggled with was when a user control was a composite of other user controls.  Your assistance helped me through this as such I have no issues with Step 2.

Step 3:  (This is where I am unsure if my approach is the right approach)

In order to control the center content similar to the behavior of the legacy aspx page I think I need to create a new User Control which would encapsulate the exact same content as the legacy aspx page which includes any user controls that were part of that content within the legacy aspx page along with the existing logic that was part of the legacy aspx page’s code behind.   
Once I have this new user control, I than turn that into a Visual Web part which would be used in step 5 below.  Is this the correct approach or is there an easier way?

Step 4:

Place the visual web parts from step 2 on to my page layout within the cph_left ContentPlaceHolder. 

Step 5:

Create site pages based upon the Layout pages created in Step 1 and 4 and place my Visual web parts as created in Step 3 into the cph_center ContentPlaceHolder.

Con you please confirm if this is the correct approach or not.</description>
		<content:encoded><![CDATA[<p>Hi Gabe</p>
<p>I am hoping that you will be able to confirm my approach below prior to me starting as it will be quite a lot of work but I am determined and will follow this approach if it is the correct approach.</p>
<p>I am trying to migrate the functionality of a legacy ASP.Net application. Earlier you helped me with a particular aspect of this migration which was to wrap the ascx user controls in Visual Web parts. I am now trying to complete the migration and would love if you could provide some guidance on my approach.</p>
<p>The legacy ASP.Net application consists of a series of ASP.Net pages which inherit from an Asp.net Master Page.  </p>
<p>In the Master Page there exists two ContentPlaceHolders (cph_left, cph_center)<br />
The first ContentPlaceHolder (cph_left) has its content filled with specific user controls that will always be there no matter what page the user is on, while the other ContentPlaceHolder (cph_center) is empty in the master page and is populated by each of the aspx pages such that the cph_center contains different content (divs, user controls etc. ) depending on the page the user was on.</p>
<p>In the legacy aspx page(s), the code behind has access to each instance of each ascx it has placed within the cph_center and thus is able to control them as needed. For example, depending on what options are enable, the code behind might hide or show a user control within a particular legacy aspx page. </p>
<p>As you may have gathered, I am attempting to port this application over to SharePoint and I am hoping you are able to confirm my approach.</p>
<p>Here is what I beleive I need to do but please tell me if I am wrong; </p>
<p>Step 1:<br />
Create a page layout which inherits from my custom master page(s) and then add my ContentPlaceHolders (cph_left, cph_center) and any additional Web part Zones to support the dropping of Visual Web Parts.<br />
In my custom layout page I would add the same visual web parts directly to page to ensure that the same user controls are always showing on the left side as was in the legacy application. This might also be accomplished through the use of a web part zone and customize this zone within each page.</p>
<p>I am fairly confident with how to do this and feel I will be able to create a page layout within Visual Studio to suit my needs. I have created some very nice master pages thus I have no issues with this step.</p>
<p>Step 2:  (This is the step you helped me with which is complete)</p>
<p>Create visual web parts based upon the ascx user controls. This worked perfectly thanks to you.  As a result I am now easily able to add these web parts to SharePoint and they access the legacy data and render as they do in the legacy application work as they did before.  The area I struggled with was when a user control was a composite of other user controls.  Your assistance helped me through this as such I have no issues with Step 2.</p>
<p>Step 3:  (This is where I am unsure if my approach is the right approach)</p>
<p>In order to control the center content similar to the behavior of the legacy aspx page I think I need to create a new User Control which would encapsulate the exact same content as the legacy aspx page which includes any user controls that were part of that content within the legacy aspx page along with the existing logic that was part of the legacy aspx page’s code behind.<br />
Once I have this new user control, I than turn that into a Visual Web part which would be used in step 5 below.  Is this the correct approach or is there an easier way?</p>
<p>Step 4:</p>
<p>Place the visual web parts from step 2 on to my page layout within the cph_left ContentPlaceHolder. </p>
<p>Step 5:</p>
<p>Create site pages based upon the Layout pages created in Step 1 and 4 and place my Visual web parts as created in Step 3 into the cph_center ContentPlaceHolder.</p>
<p>Con you please confirm if this is the correct approach or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe Hilado</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-629</link>
		<dc:creator>Gabe Hilado</dc:creator>
		<pubDate>Wed, 20 Oct 2010 14:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-629</guid>
		<description>You&#039;re welcome John. It didn&#039;t take me that long to replicate your issue. Like I said, easier to develop Web parts in VS 2010/SP 2010 Visual Web parts.

I&#039;m glad you&#039;re also able to resolve how to package your images!

-Gabe</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome John. It didn&#8217;t take me that long to replicate your issue. Like I said, easier to develop Web parts in VS 2010/SP 2010 Visual Web parts.</p>
<p>I&#8217;m glad you&#8217;re also able to resolve how to package your images!</p>
<p>-Gabe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/comment-page-1/#comment-628</link>
		<dc:creator>john</dc:creator>
		<pubDate>Wed, 20 Oct 2010 13:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://spdeveloper.net/?p=334#comment-628</guid>
		<description>Sorry, I found that this was accomplished through a Mapped Image folder.</description>
		<content:encoded><![CDATA[<p>Sorry, I found that this was accomplished through a Mapped Image folder.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

