<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Solutek</title>
	<link>http://solutek.org</link>
	<description>Unoriginal Enough To Have Something To Say</description>
	<pubDate>Wed, 30 Jan 2008 18:51:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Perfect iTunes EQ settings</title>
		<link>http://solutek.org/2007/12/03/perfect-itunes-eq-settings/</link>
		<comments>http://solutek.org/2007/12/03/perfect-itunes-eq-settings/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 01:48:46 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
		
		<category><![CDATA[Music]]></category>

		<category><![CDATA[iTunes]]></category>

		<guid isPermaLink="false">http://solutek.org/2007/12/03/perfect-itunes-eq-settings/</guid>
		<description><![CDATA[These are the perfect EQ settings for iTunes, give it a go



Share This
]]></description>
			<content:encoded><![CDATA[<p>These are the perfect EQ settings for iTunes, give it a go</p>
<p><img src="http://data.tumblr.com/h3ILgwr5y1kj4ik4x0sUzi3K_400.jpg" /></p>
<p><cite cite="http://data.tumblr.com/h3ILgwr5y1kj4ik4x0sUzi3K_400.jpg"></cite></p>
<p></p>
<span class="akst_link"><a href="http://solutek.org/?p=9&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_9"  class="akst_share_link">Share This</a>
</span>]]></content:encoded>
			<wfw:commentRss>http://solutek.org/2007/12/03/perfect-itunes-eq-settings/feed/</wfw:commentRss>
		</item>
		<item>
		<title>‘WebService’ is undefined Error: ASP.NET AJAX javscript call to a web service</title>
		<link>http://solutek.org/2007/12/03/7/</link>
		<comments>http://solutek.org/2007/12/03/7/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 08:18:07 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[asp.net]]></category>

		<category><![CDATA[c#]]></category>

		<category><![CDATA[Coding]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://solutek.org/2007/12/03/7/</guid>
		<description><![CDATA[Ok if you are like me and you are trying to call a webservice from javascript and you are getting the Web Service is undefined error then this will show you how to solve the problem. I wasted hours trying to figure this out, because all the tutorials and videos show them just adding the [...]]]></description>
			<content:encoded><![CDATA[<p>Ok if you are like me and you are trying to call a webservice from javascript and you are getting the Web Service is undefined error then this will show you how to solve the problem. I wasted hours trying to figure this out, because all the tutorials and videos show them just adding the service ref to the proxy and it works like magic. The problem lies when you are using a web application project. Since web application projects use namespaces you need to add it before your call to the service. Also I needed to add <em>using System.Web.Script.Services;</em> and  <em>[ScriptService]</em> to my asmx code behind.  Below I will give an example of how to get this working.</p>
<p>Create your webservice. I added mine in a sub directory of my site named Services. So when looking into the code behind of the webservice you will see something like: <em>namespace MyNamespace.Services </em>you want to remember this.  Next thing is to add: <em>using System.Web.Script.Services; </em>with the rest of the includes and also add the line: <em>[ScriptService]</em> just before the <em>public class MyService : System.Web.Services.WebService</em></p>
<p>Next is to go to the  aspx page and create the proxy.</p>

<div class="wp_syntax"><div class="code"><pre class="asp">&lt;asp:scriptmanagerproxy id=<span style="color: #cc0000;">&quot;“ScriptManagerProxy”&quot;</span> runat=<span style="color: #cc0000;">&quot;“server”&quot;</span>&gt;
&lt;services&gt;
&lt;asp:servicereference path=<span style="color: #cc0000;">&quot;“~/Services/MyService.asmx”&quot;</span>&gt;&lt;/asp:servicereference&gt;
&lt;/services&gt;
&lt;/asp:scriptmanagerproxy&gt;</pre></div></div>

<p>Next comes the javascript</p>

<div class="wp_syntax"><div class="code"><pre class="javascript">&lt;script language=<span style="color: #3366CC;">&quot;“javascript”&quot;</span> type=<span style="color: #3366CC;">&quot;“text/javascript”&quot;</span>&gt;
<span style="color: #003366; font-weight: bold;">function</span> ButtonClick<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> MyNamespace.<span style="color: #006600;">Services</span>.<span style="color: #006600;">MyService</span>.<span style="color: #006600;">MyFunction</span><span style="color: #66cc66;">&#40;</span>OnComplete<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> OnComplete<span style="color: #66cc66;">&#40;</span>results<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000066;">alert</span> <span style="color: #66cc66;">&#40;</span>results<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#125;</span>
&lt;/script&gt;</pre></div></div>

<p>Notice the “<em><strong>MyNamespace.Services.”</strong></em> before the name of the webservice. This is important to add when using a web application project, it is not need when making a regular web site because a web site does not use namespaces. So there you go, you should now be able to get things up and running.</p>
<p></p>
<span class="akst_link"><a href="http://solutek.org/?p=7&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_7"  class="akst_share_link">Share This</a>
</span>]]></content:encoded>
			<wfw:commentRss>http://solutek.org/2007/12/03/7/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.680 seconds -->
