<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx</link><description>[wait…is this a (*gulp*) technical post? sheesh…when’s the last time I actually posted dev/technical content? I was shocked to find that it was March 2005 , when I posted three fairly useful items — more than a year ago! Well, then…let’s get going, and</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using ASP.NET 2.0 WebResources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#588169</link><pubDate>Tue, 02 May 2006 09:27:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:588169</guid><dc:creator>leppie</dc:creator><description>You JS would be more browser compatible if you use the following:&lt;br&gt;&lt;br&gt;image.src='button.gif';&lt;br&gt;&lt;br&gt;and pass this and NOT this.id :)&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#588199</link><pubDate>Tue, 02 May 2006 10:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:588199</guid><dc:creator>ryanrogers</dc:creator><description>No question, I code for IE, and then walk away from the scene of the crime. &amp;nbsp;:) &amp;nbsp;I'm not sure that I understand -- from your comment -- the change that you'd implement to make this more cross-browser-ready (what is it that the code should pass from within HTML to the script, exactly?).&lt;br&gt;&lt;br&gt;BTW, there is, for some reason, a very strong South African community here on the &amp;quot;Eastside&amp;quot; of the greater Seattle area, where Microsoft is located. &amp;nbsp;Somehow, I have several friends from SA who speak Africaans (not that I can speak a work of it, myself) as a first language -- small world, as they say. &amp;nbsp;;)</description></item><item><title>re: Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#588802</link><pubDate>Wed, 03 May 2006 03:50:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:588802</guid><dc:creator>leppie</dc:creator><description>// Initial JScript source code&lt;br&gt;function RollOver(image)&lt;br&gt;{&lt;br&gt; &amp;nbsp; &amp;nbsp;image.src = 'button_hover.gif';&lt;br&gt;}&lt;br&gt;function RollOut(image)&lt;br&gt;{&lt;br&gt; &amp;nbsp; &amp;nbsp;image.src='button.gif';&lt;br&gt;}&lt;br&gt;...&lt;br&gt;onrollover=&amp;quot;RollOver(this)&amp;quot;&lt;br&gt;&lt;br&gt;Sorry missed a part there :) Not all browsers supports document.all, although by passing an ID, you could have called document.getElementById(). It's interesting to see how ever browser tries to do something 'better' :)&lt;br&gt;&lt;br&gt;Yeah, the South Africans tend to reach every corner of the planet. And then gang up again, hehe.&lt;br&gt;</description></item><item><title>re: Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#591806</link><pubDate>Sun, 07 May 2006 11:11:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:591806</guid><dc:creator>ryanrogers</dc:creator><description>Ah! &amp;nbsp;Got it, makes sense. &amp;nbsp;Thanks, man. &amp;nbsp;I'll try it out, and then amend the post to include your revision. &amp;nbsp;There's no reason not to be more cross-browser friendly, especially when the change is relatively trivial, as this seems to be. &amp;nbsp;I appreciate the tip!</description></item><item><title>re: Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#595002</link><pubDate>Thu, 11 May 2006 03:52:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:595002</guid><dc:creator>rd</dc:creator><description>Thanks for the sample!
&lt;br&gt;
&lt;br&gt;Any recommendation on how to include external css using similar methods? I couldn't find something similar to cs.RegisterClientScriptInclude(). </description></item><item><title>re: Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#730593</link><pubDate>Wed, 30 Aug 2006 00:06:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:730593</guid><dc:creator>Matt</dc:creator><description>I have tried this strategy but have been unable to make it work with MOSS 2007.  I have included the resource file and I am able to get a URL from the framework. However, when I attempt to access this url by adding it to an image control or manually go to this URL no content is returned.  Any ideas?
</description></item><item><title>re: Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#739743</link><pubDate>Mon, 04 Sep 2006 18:58:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:739743</guid><dc:creator>Netflash</dc:creator><description>Does this work with compiled user controls? I'm trying to get an image using GetWebResourceUrl but the image doesn't appear an I'm sure the name used in the attribute  "[assembly: WebResource... " is correct.I've checked it with reflector. I can even see the image with reflector so i know its in the assembly.

I can send a vs project with this if necessary. I really need help on this!
Thank you.</description></item><item><title>Deploying resources with web parts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#794744</link><pubDate>Fri, 06 Oct 2006 01:03:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:794744</guid><dc:creator>Share This Point</dc:creator><description /></item><item><title>re: Using ASP.NET 2.0 Web Resources in WebParts</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#1838059</link><pubDate>Thu, 08 Mar 2007 20:35:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1838059</guid><dc:creator>fishwack</dc:creator><description>&lt;p&gt;Ryan,&lt;/p&gt;
&lt;p&gt;Thanks for this post man. I've used this method in my own web parts and its worked great so far but I do have one question I was wondering if you could help me with.&lt;/p&gt;
&lt;p&gt;We have resources working great inside of a ASP.NET 2.0 web part used inside of MOSS 2007, except we are having a problem(page displays a 403 error) w/ non administrative users getting permissions to the resources out of a controls assembly that our web part is referencing. &amp;nbsp;After an administrator loads the assembly into memory(by viewing the same page) &amp;nbsp;in WSS/MOSS the web part works fine, and the resources are accessible to all, but before that an non-admin user doesn’t have read permissions to the referenced assembly.&lt;/p&gt;
&lt;p&gt;We have gotten around this problem, by manually changing the permissions on the referenced assembly file in the bin folder of the virtual server, but that doesn’t help us with long term deployment issues.&lt;/p&gt;
&lt;p&gt;More specifics:&lt;/p&gt;
&lt;p&gt;We have two assemblies, TAP.WebControls (contains the resources embedded in the assembly), and TAP.WebParts. These are both being deployed to the server via one cab. &amp;nbsp;Whenever our web parts attempt to use the controls or the resources from the controls assembly we get a 403 error if the user trying to access the page is not an administrator on the machine/domain. We have found that if we go into the bin where the assembly is deployed and give a specific user read access they no longer receive the error. Are you aware of any special permissions, trust level, or web.config settings we need to implement before attempting to call the ClientScriptManager.GetWebResourceUrl method? Here is an example of how we are calling it right now…&lt;/p&gt;
&lt;p&gt;Cs.GetWebResourceUrl(typeof(ClassInWebControlsAssembly), “TAP.WebControls.Resources.someimage.jpg”);&lt;/p&gt;
&lt;p&gt;Any help or advice you can offer would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
</description></item><item><title>ASP.NET 2.0 - Server Control Web Resources</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#5509162</link><pubDate>Thu, 18 Oct 2007 17:47:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5509162</guid><dc:creator>Name of the blog</dc:creator><description>&lt;p&gt;ASP.NET 2.0 - Server Control Web Resources&lt;/p&gt;
</description></item><item><title>ASP.NET 2.0 - Server Control Web Resources</title><link>http://blogs.msdn.com/ryanrogers/archive/2006/05/01/using-asp-net-2-0-web-resources-in-webparts.aspx#5509170</link><pubDate>Thu, 18 Oct 2007 17:47:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5509170</guid><dc:creator>Name of the blog</dc:creator><description>&lt;p&gt;ASP.NET 2.0 - Server Control Web Resources&lt;/p&gt;
</description></item></channel></rss>