<?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: Using WebControls in templates instead of WebParts</title>
	<atom:link href="http://amargalla.com/Blog/sharepoint/40-using-webcontrols-in-templates-instead-of-webparts/feed" rel="self" type="application/rss+xml" />
	<link>http://amargalla.com/Blog/sharepoint/40-using-webcontrols-in-templates-instead-of-webparts</link>
	<description>Business, Life and SharePoint</description>
	<lastBuildDate>Tue, 24 Jan 2012 03:10:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Amar Galla</title>
		<link>http://amargalla.com/Blog/sharepoint/40-using-webcontrols-in-templates-instead-of-webparts/comment-page-1#comment-55</link>
		<dc:creator>Amar Galla</dc:creator>
		<pubDate>Wed, 15 Mar 2006 19:03:08 +0000</pubDate>
		<guid isPermaLink="false">/blog/archive/2006/03/01/using-webcontrols-in-templates-instead-of-webparts.aspx#comment-55</guid>
		<description>
               
Hi Laura,

  The web.config would be the one corresponding to the IIS Web root which your site / portal is pointing. So if you installed your portal on c:\inetpub\wwwroot then you need to edit the web.config in that wwwroot folder. If you have a wss site created elsewhere, to get your webpart working on your default.aspx, edit the web.config corresponding to that directory.

Hope this helps.

Amar

  
          </description>
		<content:encoded><![CDATA[<p>Hi Laura,</p>
<p>  The web.config would be the one corresponding to the IIS Web root which your site / portal is pointing. So if you installed your portal on c:\inetpub\wwwroot then you need to edit the web.config in that wwwroot folder. If you have a wss site created elsewhere, to get your webpart working on your default.aspx, edit the web.config corresponding to that directory.</p>
<p>Hope this helps.</p>
<p>Amar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://</title>
		<link>http://amargalla.com/Blog/sharepoint/40-using-webcontrols-in-templates-instead-of-webparts/comment-page-1#comment-54</link>
		<dc:creator>http://</dc:creator>
		<pubDate>Tue, 14 Mar 2006 02:03:46 +0000</pubDate>
		<guid isPermaLink="false">/blog/archive/2006/03/01/using-webcontrols-in-templates-instead-of-webparts.aspx#comment-54</guid>
		<description>
               
Dear Amar:

I am trying to modify site template definition file &quot;default.aspx&quot; to add a web part,
I tried everything, using web part, web control, and the tip you mentioned in your site &quot;Using Web controls in template instead of web part&quot;. 

but I get error as such:

A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe. 

it only works if I import the web part through &quot;Modify Shared page --&gt; Add Web Part&quot; on the specific site default.aspx. But always get the error if I manually type in the web part or control in to the site definition default.aspx.

I registed safe controls, put in the GAC...did everything, but it only works for specific site default.aspx, but on site template definition default.aspx.

Do you have any suggestion on this? could you send me the code on how you put the webpart or web control into site definition default.aspx?



Thank you for your help!

Hope to hear from you soon!

Laura

  
          </description>
		<content:encoded><![CDATA[<p>Dear Amar:</p>
<p>I am trying to modify site template definition file &#8220;default.aspx&#8221; to add a web part,<br />
I tried everything, using web part, web control, and the tip you mentioned in your site &#8220;Using Web controls in template instead of web part&#8221;. </p>
<p>but I get error as such:</p>
<p>A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe. </p>
<p>it only works if I import the web part through &#8220;Modify Shared page &#8211;&gt; Add Web Part&#8221; on the specific site default.aspx. But always get the error if I manually type in the web part or control in to the site definition default.aspx.</p>
<p>I registed safe controls, put in the GAC&#8230;did everything, but it only works for specific site default.aspx, but on site template definition default.aspx.</p>
<p>Do you have any suggestion on this? could you send me the code on how you put the webpart or web control into site definition default.aspx?</p>
<p>Thank you for your help!</p>
<p>Hope to hear from you soon!</p>
<p>Laura</p>
]]></content:encoded>
	</item>
</channel>
</rss>

