<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>ASP.NET AJAX UI</title><link>http://forums.asp.net/1008.aspx</link><description>Here you can discuss UI-related issues with AJAX such as controls and client-side functionality including Silverlight controls for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: PageMethods - wait for the ext version</title><link>http://forums.asp.net/thread/2187024.aspx</link><pubDate>Thu, 21 Feb 2008 12:11:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2187024</guid><dc:creator>kiruba.sankars</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2187024.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=2187024</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;&amp;lt;%&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;@&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;Page&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;Language&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;C#&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;AutoEventWireup&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;true&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;CodeFile&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Default.aspx.cs&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;Inherits&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;_Default&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; %&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;html&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;xmlns&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;head&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;title&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;font size="2"&gt;Untitled Page&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;title&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;[System.Web.Services.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;WebMethod&lt;/font&gt;&lt;font size="2"&gt;]&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;[System.Web.Script.Services.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;ScriptMethod&lt;/font&gt;&lt;font size="2"&gt;]&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;static&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; MyMethod()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;MyMethod Called&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;language&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; preview()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;PageMethods.MyMethod(onComplete);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; onComplete(res)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;alert(res);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;head&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;body&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;form&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;form1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;div&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#800000" size="2"&gt;ScriptManager&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;ScriptManager1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;EnablePageMethods&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;True&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#800000" size="2"&gt;ScriptManager&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;input&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Button1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;button&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;value&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;button&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;onclick&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;javascript:preview();&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;div&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;form&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;body&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;html&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1910702.aspx</link><pubDate>Sat, 15 Sep 2007 20:24:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1910702</guid><dc:creator>oliver0303</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1910702.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1910702</wfw:commentRss><description>&lt;p&gt;Hi Murali,&lt;br /&gt;&lt;br /&gt;Im experiencing the same problem. Did you ever solve that ?&lt;br /&gt;&lt;br /&gt;When using PageMethods the localized versions of my strings are not loaded. I hope someone have a solution for this.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;</description></item><item><title>Re: PageMethods - wait for the ext version</title><link>http://forums.asp.net/thread/1893500.aspx</link><pubDate>Wed, 05 Sep 2007 11:02:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1893500</guid><dc:creator>blbirajdar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1893500.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1893500</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Friend&lt;/p&gt;
&lt;p&gt;You are making simple mistake.&lt;/p&gt;
&lt;p&gt;Every AJAX enabled site has a Script Manager on the Page by default. Or either you can put it on your master page.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#800000" size="2"&gt;ScriptManager&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;MCScriptManager&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;EnablePartialRendering&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;true&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;EnablePageMethods&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;true&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#800000" size="2"&gt;ScriptManager&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Just put the tag&amp;nbsp;&amp;nbsp;&lt;font color="#ff0000"&gt;EnablePageMethods&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;true&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;and click...Go....................&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;Cheers.........And Happy coding...........&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1450706.aspx</link><pubDate>Thu, 02 Nov 2006 13:04:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1450706</guid><dc:creator>MURARAMAPS</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1450706.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1450706</wfw:commentRss><description>&lt;p&gt;Hi,

I have a weird problem with PageMethods. I managed to declare a method static and decorated it with script and webservice attributes and put it in ASPX instead of code. Now I can call it from JS. The pagemethod executes and returns a string from a resource file on successful completion.&lt;/p&gt;&lt;p&gt;For some reason this string is always from en-US even though i have other localized versions of the resource file containing the string. The page culture and uiculture is set to &amp;quot;auto&amp;quot; and i kept one of my localized language as the my first language in my internet explorer followed by en-US.&lt;/p&gt;&lt;p&gt;&amp;nbsp;The other page controls are loaded from the resource file correctly, only the AJAX callbacks seem to return only en-US strings. I debugged to find system.threading.thread.currentthread.currentculture and uiculture always set to en-US on pagemethods callback. Would this mean that Atlas would not recognize any of the localization features of ASP.net or am i missing some thing here?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Murali&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: PageMethods - wait for the ext version</title><link>http://forums.asp.net/thread/1439729.aspx</link><pubDate>Tue, 24 Oct 2006 18:45:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1439729</guid><dc:creator>mnn888</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1439729.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1439729</wfw:commentRss><description>&lt;p&gt;I have a question, &lt;/p&gt;&lt;p&gt;If I just stick with the Atlas July ctp , is there a timer in it? Like does it stop working at a future date ?&lt;/p&gt;</description></item><item><title>Re: PageMethods - wait for the ext version</title><link>http://forums.asp.net/thread/1439074.aspx</link><pubDate>Tue, 24 Oct 2006 10:11:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1439074</guid><dc:creator>MrTea</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1439074.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1439074</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;haimMag:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;insted of breaking ypur head and program again and again&lt;/p&gt;&lt;p&gt;it is better to wait to next version or final version&lt;/p&gt;&lt;p&gt;i will stick in july ctp until a better version will come&lt;/p&gt;&lt;p&gt;my program need page.clientscript.registerStartupscript and PageMethod&lt;/p&gt;&lt;p&gt;and both of them not working in ajax beta 1&lt;/p&gt;&lt;p&gt;so why go ther from july ctp???&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;p&gt;Well the only problem with that logic is that you would imagine each version that comes out in Beta or RC form would be a step nearer to the final release, implying that the BETA is closer to the final implementation than the July CTP.&lt;/p&gt;&lt;p&gt;That said, I equally wouldn&amp;#39;t be that surprised if things did change quite drastically before the final release.&lt;/p&gt;&lt;p&gt;I guess the thing to remember here is that if we choose to work with pre-release software then we have to expect it to change.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: PageMethods - wait for the ext version</title><link>http://forums.asp.net/thread/1439066.aspx</link><pubDate>Tue, 24 Oct 2006 09:59:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1439066</guid><dc:creator>haimMag</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1439066.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1439066</wfw:commentRss><description>&lt;p&gt;insted of breaking ypur head and program again and again&lt;/p&gt;&lt;p&gt;it is better to wait to next version or final version&lt;/p&gt;&lt;p&gt;i will stick in july ctp until a better version will come&lt;/p&gt;&lt;p&gt;my program need page.clientscript.registerStartupscript and PageMethod&lt;/p&gt;&lt;p&gt;and both of them not working in ajax beta 1&lt;/p&gt;&lt;p&gt;so why go ther from july ctp???&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1439033.aspx</link><pubDate>Tue, 24 Oct 2006 09:21:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1439033</guid><dc:creator>Fredrik K</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1439033.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1439033</wfw:commentRss><description>&lt;p&gt;I think ScriptMethods (PageMethods) are part of the UI layer; consider where they are declared - no business logic should be residing in the Page class. I hope they change it so that they&amp;#39;ll go back to being state-aware and part of the Page lifecycle again. The way it&amp;#39;s implemented in the new beta, there&amp;#39;s really not much distinction between a ScriptMethod and a WebMethod (web service) any more.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1439002.aspx</link><pubDate>Tue, 24 Oct 2006 09:02:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1439002</guid><dc:creator>MrTea</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1439002.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1439002</wfw:commentRss><description>&lt;p&gt;As something of an ASP.NET AJAX Novice I find this thread very interesting.&lt;/p&gt;&lt;p&gt;For me it touches a wider issue which is that for the newbie there is a vast array of possible approaches to building an ASP.NET AJAX app and the best path is not always clear.&lt;/p&gt;&lt;p&gt;My very first app simply used an UpdatePanel and seemed to work fine but then I decided I wanted a bit more control over what was happening.&lt;/p&gt;&lt;p&gt;Consequently my next app used PageMethods to call functions in the ASP.NET Codebehind. Again this seemed to work fine for such things as retrieving Strings etc.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Then I looked at Web Services and devised a couple of those which I then referenced from my ASPX pages (using the ScriptManager)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now though I&amp;#39;m not really very clear where to go next.&lt;/p&gt;&lt;p&gt;I guess it&amp;#39;s like anything else, you just need to give it time and try lots of different things before you can make a judgement call on the best way forward. The danger is that for those of us who have never used much javascript, we may be tempted to try and avoid it (using the UpdatePanels etc) but then come unstuck when we want a bit more control over our app&amp;#39;s behaviour.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I hope the documentation will help with this though once the framework goes RTM.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1438997.aspx</link><pubDate>Tue, 24 Oct 2006 08:58:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1438997</guid><dc:creator>rstrahl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1438997.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1438997</wfw:commentRss><description>&lt;p&gt;I agree&amp;nbsp;as well - in most cases I use Web Services to abstract&amp;nbsp;the logic, because it&amp;#39;s&amp;nbsp;just cleaner. But I would very much like to have the option to be able to get at the data in an easier way in the page. &amp;nbsp;&lt;/p&gt;&lt;p&gt;As to the form with 50 fields: Well there&amp;#39;s lots of ways to represent data &amp;lt;s&amp;gt;. Yeah you&amp;#39;re probably right but I have a couple of forms that have this much data in various pages of a tabbed interface that&amp;#39;s driven through AJAX.&amp;nbsp;In fact in a properly architected AJAX application values are probably updated more frequently than one giant form submit.&lt;/p&gt;&lt;p&gt;But even so even if you have a smallish form like this:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.west-wind.com/atlas/CustomerList/AtlasCustomerList.aspx"&gt;http://www.west-wind.com/atlas/CustomerList/AtlasCustomerList.aspx&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;You then have code like this to retrieve the data to send to the server:&lt;/p&gt;&lt;p&gt;&lt;span class="rem"&gt;&amp;nbsp;&amp;nbsp; // *** Cheating: This object contains only strings!&lt;br /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If other types exist conversion &lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="rem"&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; must be done here.&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer.Companyname = GetValue(&lt;span class="str"&gt;&amp;#39;txtCompany&amp;#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer.Contactname = GetValue(&lt;span class="str"&gt;&amp;#39;txtContactName&amp;#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer.Address = GetValue(&lt;span class="str"&gt;&amp;#39;txtAddress&amp;#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer.City = GetValue(&lt;span class="str"&gt;&amp;#39;txtCity&amp;#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer.Postalcode = GetValue(&lt;span class="str"&gt;&amp;#39;txtPostalCode&amp;#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer.Region = GetValue(&lt;span class="str"&gt;&amp;#39;txtRegion&amp;#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer.Country = GetValue(&lt;span class="str"&gt;&amp;#39;txtCountry&amp;#39;&lt;/span&gt;);&lt;/p&gt;&lt;p&gt;&lt;span class="rem"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // *** Pass back the customer object to the server&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerService.SaveCustomer(Customer,SaveCustomerCallback,ErrorCallback,ErrorCallback);&lt;br /&gt;&lt;br /&gt;It gets worse if the object your setting values on has typed values - then you have to do type conversion in JavaScript which is no fun... Then on the server you do that parsing again out of the object so you&amp;#39;re just duplicating the work.&lt;/p&gt;&lt;p&gt;When I meant &amp;#39;parsing on the server&amp;#39; I didn&amp;#39;t mean parse the object. You do get the object back on teh server. But it&amp;#39;s a proxy at best and from there you have to move the data out into a real object that actually does the data logic - an Entity that can save or a DataRow or whatever it may be. For most types a type converter isn&amp;#39;t even required as the JSON proxy creates the required proxy objects on the client for you. That is very cool, but it&amp;#39;s still more work than it has to be - you&amp;#39;re still &amp;#39;reading&amp;#39; the data twice - once on the client, then again on the server. Instead you could do it once and be done with it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1438944.aspx</link><pubDate>Tue, 24 Oct 2006 07:58:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1438944</guid><dc:creator>jlchereau</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1438944.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1438944</wfw:commentRss><description>&lt;p&gt;Rick,&amp;nbsp;&lt;/p&gt;&lt;p&gt;Convincing point of view, although a form with 50 input fields seems theoretical to me because it is not very user friendly. I should not have said &amp;quot;it does not makes sense&amp;quot; but I still do not like it.&lt;/p&gt;&lt;p&gt;Despite the fact that you definitely have a point,&amp;nbsp;I&amp;nbsp;prefer the more stateless approach of parsing the fields on the client and feeding&amp;nbsp;a Javascript&amp;nbsp;object that&amp;nbsp;is passed to the web service or page method as you describe. Contrary to what you say,&amp;nbsp;it is&amp;nbsp;not needed to parse the object again on the server, the ASP.NET Ajax layer does that automatically for you, although you may have to write a couple of converters. Note that my business objects are very light data structures which are effectively persisted by business brokers.&lt;/p&gt;&lt;p&gt;By the way, thank you for your valuable web site, which I often consult.&lt;/p&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1438896.aspx</link><pubDate>Tue, 24 Oct 2006 06:43:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1438896</guid><dc:creator>Fredrik K</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1438896.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1438896</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Page.User&lt;/strong&gt; is merely a convenience property that wraps &lt;strong&gt;System.Threading.Thread.CurrentPrincipal&lt;/strong&gt;, which is static, so just access that instead :)&lt;/p&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1438774.aspx</link><pubDate>Tue, 24 Oct 2006 03:25:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1438774</guid><dc:creator>rstrahl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1438774.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1438774</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&amp;gt;&amp;gt; I may be wrong, but IMO it does not make sense to access controls in PageMethods. PageMethods are part of the business layer. &lt;/p&gt;&lt;p&gt;Yes and no. But the point is you can already achieve teh &amp;#39;business layer&amp;#39; effect by calling a Web Service and now with PageMethods being forced to be static you&amp;#39;re doing nothing but duplicating that functionality. All this does give you another place to store your &amp;#39;service methods&amp;#39;.&lt;/p&gt;&lt;p&gt;Allowing access to the page is very valuable IMHO because it allows you to read values set on the client without having to pass every damn field value as a parameter or as part of an object you first populate on the client. &lt;/p&gt;&lt;p&gt;Consider this: You have a form with 50 input fields on it and the user fills that out. Now you want to use AJAX to save those values. If you use PageMethods or Web Service you have to pass 50 parameters or create a client object that first parses the values out of the fields, possibly converts to the proper types etc. Then you send the data to the server, and you get the parse the values&amp;nbsp;AGAIN on the server - out of the parameters or object into a business object or a DataRow or whatever.&lt;/p&gt;&lt;p&gt;Instead not passing parameters but receiving the values from the client directly on the server in the POST buffer lets you deal with the input values once and store it directly into your object.&lt;/p&gt;&lt;p&gt;I can be a huge timesaver and reduces boatloads of error prone&amp;nbsp;$get() statements on the client.&lt;/p&gt;&lt;p&gt;If all that PageMethods does is duplicate Web/SCript Service behavior but in a page I say cut the whole thing and take&amp;nbsp;the overhead out of the Page class.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1438753.aspx</link><pubDate>Tue, 24 Oct 2006 03:05:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1438753</guid><dc:creator>mnn888</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1438753.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1438753</wfw:commentRss><description>In the Atlas&amp;nbsp;July CTP, &amp;nbsp;Im using the Page.User.Identity.Name as a security verification inside the PageMethods , How would I do this in the new version without passing parameters in javascript, as this would reveal the values.</description></item><item><title>Re: PageMethods</title><link>http://forums.asp.net/thread/1438403.aspx</link><pubDate>Mon, 23 Oct 2006 21:27:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1438403</guid><dc:creator>jlchereau</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1438403.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1438403</wfw:commentRss><description>&lt;p&gt;See: &lt;a href="http://blogs.msdn.com/sburke/archive/2006/10/21/hint-components-that-use-web-services-with-asp-net-ajax-v1-0-beta.aspx"&gt;http://blogs.msdn.com/sburke/archive/2006/10/21/hint-components-that-use-web-services-with-asp-net-ajax-v1-0-beta.aspx&lt;/a&gt;. PageMethods are broken in Beta1 and do not work in code behind.&lt;/p&gt;&lt;p&gt;Dimitrod, you say: &amp;quot;But if PageMethods are static how do we access page control values within such a method?&amp;quot;.&lt;br /&gt;I may be wrong, but IMO it does not make sense to access controls in PageMethods. PageMethods are part of the business layer. You should read control values using client-side code, pass these values to the method as parameters and read the returned data in the form of&amp;nbsp;a basic type or a complex serialized object. I personally think it is a good thing that PageMethods are now static.&lt;/p&gt;</description></item></channel></rss>