<?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>PHP to ASP.NET Migration Assistant Alpha</title><link>http://forums.asp.net/133.aspx</link><description>Use this forum to ask questions about the PHP to ASP.NET Migration Assistant.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: how i can convert this link from php to asp.net</title><link>http://forums.asp.net/thread/1926968.aspx</link><pubDate>Wed, 26 Sep 2007 07:00:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1926968</guid><dc:creator>er.tushar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1926968.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=1926968</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;That can be done easily. Moreover you can use the code on
line no 13. But in that case, when u use Delete.aspx, you can access
the query parameters like this:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Request.QueryString[&amp;quot;ProductID&amp;quot;] &lt;br /&gt;
Remember that you will always get string in return. In case you want to use it as integer, you&amp;#39;ll have to parse it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;There are many ways of converting this code. I am jotting down the simplest way of doing it, as it is written in PHP (just changing the syntax) (Assuming that you&amp;#39;ll be using SQL Server).&lt;/p&gt;&lt;p&gt;On Page_Load function :&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;StringBuilder content = new StringBuilder();&lt;/p&gt;&lt;p&gt;content.Append(&amp;quot;&amp;lt;TABLE BORDER=2&amp;gt; &amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&lt;b&gt;Full Name&lt;/b&gt;&amp;lt;TD&amp;gt;&lt;b&gt;Nick Name&lt;/b&gt;&amp;lt;TD&amp;gt;&lt;b&gt;Options&lt;/b&gt;&amp;lt;/TR&amp;gt;&amp;quot;);&lt;br /&gt;SqlConnection con = new SqlConnection(&amp;quot;server=localhost;user=tushar;password=pwd;database=asp&amp;quot;);&lt;br /&gt;SqlCommand cmd&amp;nbsp; = con.CreateCommand();&lt;br /&gt;cmd.CommandText = &amp;quot; Select * from personnel&amp;quot;;&lt;br /&gt;SqlDataReader reader = cmd.ExecuteReader();&lt;br /&gt;while(reader.Read())&lt;br /&gt;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp; content.Append(&amp;quot;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;quot; + reader[&amp;quot;FirstName&amp;quot;].ToString() + reader[&amp;quot;LastName&amp;quot;].ToString() );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  ........&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  ........&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;content.Append(&amp;quot;&amp;lt;/table&amp;gt;&amp;quot;);&lt;br /&gt;reader.Close();&lt;br /&gt;con.Close();&lt;br /&gt;Response.Write(content.ToString());&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope this helps.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Tushar&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: how i can convert this link from php to asp.net</title><link>http://forums.asp.net/thread/1594805.aspx</link><pubDate>Mon, 26 Feb 2007 10:44:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1594805</guid><dc:creator>Girijesh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1594805.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=1594805</wfw:commentRss><description>&lt;p&gt;&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;nikolaoscy:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;1 2 &lt;table&gt;"; 
7 echo"&lt;tr&gt;&lt;td&gt;&lt;b&gt;Full Name&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Nick Name&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Options&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;"; 9 while ($myrow = mysql_fetch_array($result)) 10 { 11 echo "&lt;tr&gt;&lt;td&gt;".$myrow["firstname"]." ".$myrow["nick"]; 12 echo "&lt;/td&gt;&lt;td&gt;&lt;a href='http://forums.asp.net/%22view.php?id=".$myrow[id]."\"'&gt;View&lt;/a&gt; "; 13 echo "&lt;a href='http://forums.asp.net/%22delete.php?id=".$myrow[id]."\"'&gt;Delete&lt;/a&gt;"; 14 } 15 echo "&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"; 16 ?&amp;gt; 17 can i use statement like that on line 13 in order to pass the ID of the record i want to delete to mynext page using asp.net and specificaly C#? thank you Nicholas&lt;/div&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;Is problem is still unsolved?&lt;/p&gt;</description></item><item><title>Re: how i can convert this link from php to asp.net</title><link>http://forums.asp.net/thread/759346.aspx</link><pubDate>Mon, 29 Nov 2004 19:24:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:759346</guid><dc:creator>nikolaoscy</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/759346.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=759346</wfw:commentRss><description>i done this
&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;a target="_new" href="deletearticle.aspx?&amp;lt;%= dataReader.GetInt32(IdOrdinal)%&amp;gt;"&gt;Delete&lt;/a&gt;&amp;lt;/td&amp;gt;
&lt;br /&gt;

&lt;br /&gt;
but i get the following error: Compiler Error Message: CS1519: Invalid token '(' in class, struct, or interface member declaration
&lt;br /&gt;

&lt;br /&gt;
how i can capture that datareader in my delete page?</description></item><item><title>how i can convert this link from php to asp.net</title><link>http://forums.asp.net/thread/759233.aspx</link><pubDate>Mon, 29 Nov 2004 17:41:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:759233</guid><dc:creator>nikolaoscy</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/759233.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=759233</wfw:commentRss><description>1 &amp;lt;HTML&amp;gt; 
&lt;br /&gt;
2 &amp;lt;?php 
&lt;br /&gt;
3 $db = mysql_connect(&amp;quot;localhost&amp;quot;, &amp;quot;root&amp;quot;, &amp;quot;&amp;quot;); 
&lt;br /&gt;
4 mysql_select_db(&amp;quot;learndb&amp;quot;,$db); 
&lt;br /&gt;
5 $result = mysql_query(&amp;quot;SELECT * FROM personnel&amp;quot;,$db); 
&lt;br /&gt;
6 echo &amp;quot;&amp;lt;TABLE BORDER=2&amp;gt;&amp;quot;; 
&lt;br /&gt;
7 echo&amp;quot;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&lt;b&gt;Full Name&lt;/b&gt;&amp;lt;TD&amp;gt;&lt;b&gt;Nick Name&lt;/b&gt;&amp;lt;TD&amp;gt;&lt;b&gt;Options&lt;/b&gt;&amp;lt;/TR&amp;gt;&amp;quot;;
&lt;br /&gt;
9 while ($myrow = mysql_fetch_array($result)) 
&lt;br /&gt;
10 { 
&lt;br /&gt;
11 echo &amp;quot;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;quot;.$myrow[&amp;quot;firstname&amp;quot;].&amp;quot; &amp;quot;.$myrow[&amp;quot;nick&amp;quot;]; 
&lt;br /&gt;
12 echo &amp;quot;&amp;lt;TD&amp;gt;&amp;lt;a href=\&amp;quot;view.php?id=&amp;quot;.$myrow[id].&amp;quot;\&amp;quot;&amp;gt;View&amp;lt;/a&amp;gt; &amp;quot;; 
&lt;br /&gt;
13 echo &amp;quot;&amp;lt;a href=\&amp;quot;delete.php?id=&amp;quot;.$myrow[id].&amp;quot;\&amp;quot;&amp;gt;Delete&amp;lt;/a&amp;gt;&amp;quot;; 
&lt;br /&gt;
14 } 
&lt;br /&gt;
15 echo &amp;quot;&amp;lt;/TABLE&amp;gt;&amp;quot;; 
&lt;br /&gt;
16 ?&amp;gt; 
&lt;br /&gt;
17 &amp;lt;/HTML&amp;gt; 
&lt;br /&gt;

&lt;br /&gt;
can i use statement like that on line 13 in order to pass the ID of the record i want to delete to mynext page using asp.net and specificaly C#?
&lt;br /&gt;

&lt;br /&gt;
thank you
&lt;br /&gt;
Nicholas</description></item></channel></rss>