<?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>Migrating from PHP to ASP.NET</title><link>http://forums.asp.net/44.aspx</link><description>Discuss moving from PHP to ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>To do Ajax like php</title><link>http://forums.asp.net/thread/3211767.aspx</link><pubDate>Thu, 04 Jun 2009 22:30:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3211767</guid><dc:creator>MeTaLCaM</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3211767.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=44&amp;PostID=3211767</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Everybody,&lt;/p&gt;&lt;p&gt;sorry for my poor english, but I&amp;#39;ve a real problem.&lt;/p&gt;&lt;p&gt;&amp;nbsp;As I use to do in PHP, I use Ajax (not Ajax.Net), with a url like &amp;quot;blabla.php?type=xxx&amp;quot;.&lt;br /&gt;And in the blabla.php page, there is a &amp;quot;if&amp;quot; condition, (if type=a, a text is written, if type=b, another text is written, etc etc).&lt;/p&gt;&lt;p&gt;&amp;nbsp;It&amp;#39;s easy to make that with PHP, but It&amp;#39;s not the same with ASP.Net, because all the content of the written text should be on the code behind, (and I don&amp;#39;t want to use a thousand lines of &amp;quot;Response.Write()&amp;quot;).&lt;/p&gt;&lt;p&gt;SO someone told me that the solution should be to use User Controls. I didn&amp;#39;t find a really good solution, because using user controls means the creation of a lot of ascx pages...&lt;/p&gt;&lt;p&gt;&amp;nbsp;Some ideas ?&lt;/p&gt;&lt;p&gt;Thank you &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>