CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_php_to_asp.net.php_to_asp.net_migration_assistant_alpha Tags:
Item Type: NewsGroup Date Entered: 8/5/2004 2:00:43 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 10 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
stuarttaylor
Asp.Net User
Code to change,...8/5/2004 2:00:43 PM

0/0

Hi.... i have tried to changed the code for the following using the migration tool... i cannot make head nor tail of it... can anyone help me with the change over to .NET C#?

any help would be greatly appreciated as i am kinda lost

<?php include "faq_config2.php" ?>

<?php include "header.php" ?>


<!-- MAIN TEXT -->


<h1>Administration Page</h1>



<?php




include "faq_config.php";





if (isset($category)) {

print "<h3>$cat_name</h3>\n";

print "<p style=\"margin-top: -1em\"><a href=\"$PHP_SELF\">FAQ Admin</a> | <a href=\"faq_admin_faq_add.php?category=$category&cat_name=$cat_name\" onclick=\"NewWindow(this.href,'FAQ_Add','530','400','no');return false\">Add New FAQ to $cat_name</a></p>\n";

$result = mssql_query("SELECT * FROM faqs WHERE category_id = '$category'");




print "<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n";


while ($row = mssql_fetch_array($result)) {

print "<tr>
<td class=\"QA\" valign=\"top\">Q</td>
<td valign=\"top\"><pre class=\"question\">$row[question]</pre></td>
</tr>\n";

print "<tr>
<td class=\"QA\" valign=\"top\">A</td>
<td valign=\"top\"><pre class=\"answer\">$row[answer]</pre></td>
</tr>\n";

print "<tr>
<td>&nbsp;</td>
<td class=\"options\" valign=\"top\"><a href=\"faq_admin_faq_edit.php?edit=$row[id]&category=$category&cat_name=$cat_name\" onclick=\"NewWindow(this.href,'FAQ_Edit','530','380','no');return false\">Edit</a> | <a href=\"faq_admin_faq_delete.php?delete=$row[id]&category=$category&cat_name=$cat_name\" onclick=\"NewWindow(this.href,'FAQ_Delete','350','250','no');return false\">Delete</a></td>
</tr>\n";

print "<tr>
<td colspan=\"2\">&nbsp;</td>
</tr>\n";
}

print "</table>\n";


}



else {

print "<h3>FAQ Categories</h3>\n";

print "<p style=\"margin-top: -1em\">Action: <a href=\"faq_admin_cat_add.php\" onclick=\"NewWindow(this.href,'cat_add','320','270','no');return false\">Add Category</a> | <a href=\"faq_admin_cat_edit.php\" onclick=\"NewWindow(this.href,'cat_edit','520','280','no');return false\">Edit Category</a> | <a href=\"faq_admin_cat_delete.php\" onclick=\"NewWindow(this.href,'cat_del','520','210','no');return false\">Delete Category</a></p>";


$result = mssql_query("SELECT * FROM faqcategories");


print "<ul>\n";


while ($row = mssql_fetch_array($result)) {
print "<li class=\"category\"><a href=\"$PHP_SELF?category=$row[id]&cat_name=$row[category]\">$row[category]</a></li>\n";
}


print "</ul>\n";
}



mssql_close($link);

?>





<!-- END MAIN TEXT -->

1 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Cannot change any control id in project - ng.asp-net-forum ... Cannot change any control id in project, > ROOT > NEWSGROUP > Asp.Net Forum > ... a rename I still have to go into the code behind and rename all the references...
Code for Change I'm excited about talking to people about Code for Change and the work we're ... One of the goals of Code for Change is to show the progressive movement that ...
Breaking the Code of Change — HBS Working Knowledge In a corporate environment where change is constant, business leaders are ... Table I-1 summarizes the E and O approaches to organizational change. ...
Native Code Packaging Changes - OpenNMS ... to give an overivew of the changes necessary to allow the native ... having to re-release the native code which changes very ... Code changes ...
Code Security Changes in Outlook 2007 Summary: Learn how Outlook 2007 enhances code security to help protect Outlook users against malicious code while reducing security warnings for developers and ...
Code to change myspace text color? my background on myspace is black ... To change your background color, edit/add this code to your myspace layout code ... .com/hex/ To change the font's color in your layout code: font-color: FFFFFF; ...
New Mexico Area Code Change Information — Qwest Communications Qwest Communications New Mexico area code change information. ... Change your area code to 575 if it appears on things like checks or stationery. ...



 
All Times Are GMT