473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

rewrite asp code to php

hello

i'm trying to translate this asp code to php, but i can't get it work right.
could anyone help me? thanks!
a.

ASP CODE
---------------------
<%
Public mArrContent

'Build up the array
Redim mArrContent(30,5)

mArrContent(1 , 0) = 0
mArrContent(1 , 1) = 42
mArrContent(1 , 2) = "folder"
mArrContent(1 , 3) = "Leistungen"
mArrContent(1 , 4) = 34

mArrContent(2 , 0) = 1
mArrContent(2 , 1) = 48
mArrContent(2 , 2) = "page"
mArrContent(2 , 3) = "Evaluation"
mArrContent(2 , 4) = 42

mArrContent(3 , 0) = 1
mArrContent(3 , 1) = 47
mArrContent(3 , 2) = "page"
mArrContent(3 , 3) = "Forschung"
mArrContent(3 , 4) = 42

mArrContent(4 , 0) = 1
mArrContent(4 , 1) = 49
mArrContent(4, 2) = "page"
mArrContent(4 , 3) = "Beratung"
mArrContent(4 , 4) = 42

mArrContent(5 , 0) = 0
mArrContent(5 , 1) = 43
mArrContent(5 , 2) = "folder"
mArrContent(5 , 3) = "Themen"
mArrContent(5 , 4) = 34
mArrContent(6 , 0) = 1
mArrContent(6 , 1) = 51
mArrContent(6, 2) = "page"
mArrContent(6 , 3) = "Verkehr, Umwelt & Energie"
mArrContent(6 , 4) = 43

mArrContent(7 , 0) = 1
mArrContent(7 , 1) = 52
mArrContent(7 , 2) = "page"
mArrContent(7 , 3) = "Soziale Sicherheit & Integration"
mArrContent(7 , 4) = 43

mArrContent(8 , 0) = 1
mArrContent(8 , 1) = 53
mArrContent(8 , 2) = "page"
mArrContent(8 , 3) = "Bildung & Familie"
mArrContent(8 , 4) = 43

mArrContent(9 , 0) = 1
mArrContent(9 , 1) = 54
mArrContent(9 , 2) = "page"
mArrContent(9 , 3) = "Reformen"
mArrContent(9 , 4) = 43

mArrContent(10 , 0) = 1
mArrContent(10 , 1) = 147
mArrContent(10 , 2) = "page"
mArrContent(10 , 3) = "Gesundheit"
mArrContent(10 , 4) = 43

mArrContent(11 , 0) = 1
mArrContent(11 , 1) = 251
mArrContent(11 , 2) = "page"
mArrContent(11 , 3) = "test"
mArrContent(11, 4) = 43

mArrContent(12 , 0) = 0
mArrContent(12 , 1) = 45
mArrContent(12 , 2) = "folder"
mArrContent(12 , 3) = "Projekte & Publikationen"
mArrContent(12 , 4) = 34

mArrContent(13 , 0) = 1
mArrContent(13 , 1) = 113
mArrContent(13 , 2) = "folder"
mArrContent(13 , 3) = "Projekte"
mArrContent(13 , 4) = 45
mArrContent(14 , 0) = 2
mArrContent(14 , 1) = 138
mArrContent(14 , 2) = "page"
mArrContent(14 , 3) = "Test Projekt"
mArrContent(14 , 4) = 113
mArrContent(15 , 0) = 2
mArrContent(15 , 1) = 154
mArrContent(15 , 2) = "page"
mArrContent(15 , 3) = "Noch ein Testprojekt"
mArrContent(15 , 4) = 113

mArrContent(16 , 0) = 0
mArrContent(16 , 1) = 125
mArrContent(16, 2) = "folder"
mArrContent(16, 3) = "Publikationen"
mArrContent(16, 4) = 45
mArrContent(17, 0) = 0
mArrContent(17, 1) = 117
mArrContent(17, 2) = "page"
mArrContent(17, 3) = "Aktuelle Projekte & Publikationen"
mArrContent(17, 4) = 45
mArrContent(18, 0) = 0
mArrContent(18, 1) = 118
mArrContent(18, 2) = "page"
mArrContent(18, 3) = "Verkehr, Umwelt & Energie"
mArrContent(18, 4) = 45
mArrContent(19, 0) = 0
mArrContent(19, 1) = 119
mArrContent(19, 2) = "page"
mArrContent(19, 3) = "Soziale Sicherheit & Integration"
mArrContent(19, 4) = 45
mArrContent(20, 0) = 0
mArrContent(20, 1) = 120
mArrContent(20, 2) = "page"
mArrContent(20, 3) = "Bildung & Familie"
mArrContent(20, 4) = 45

mArrContent(21, 0) = 0
mArrContent(21, 1) = 121
mArrContent(21, 2) = "page"
mArrContent(21, 3) = "Reform & Internationale Entwicklung"
mArrContent(21, 4) = 45

mArrContent(22, 0) = 0
mArrContent(22, 1) = 46
mArrContent(22, 2) = "folder"
mArrContent(22, 3) = "Portrait"
mArrContent(22, 4) = 34

mArrContent(23, 0) = 1
mArrContent(23, 1) = 143
mArrContent(23, 2) = "page"
mArrContent(23, 3) = "Verst‰ndnis"
mArrContent(23, 4) = 46

mArrContent(24, 0) = 1
mArrContent(24, 1) = 58
mArrContent(24, 2) = "page"
mArrContent(24, 3) = "Team"
mArrContent(24, 4) = 46

mArrContent(25, 0) = 1
mArrContent(25, 1) = 144
mArrContent(25, 2) = "page"
mArrContent(25, 3) = "Auftraggeber"
mArrContent(25, 4) = 46

mArrContent(26, 0) = 1
mArrContent(26, 1) = 146
mArrContent(26, 2) = "page"
mArrContent(26, 3) = "Partner im Ausland"
mArrContent(26, 4) = 46

mArrContent(27, 0) = 1
mArrContent(27, 1) = 145
mArrContent(27, 2) = "page"
mArrContent(27, 3) = "Stellenangebot"
mArrContent(27, 4) = 46

mArrContent(28, 0) = 1
mArrContent(28, 1) = 262
mArrContent(28, 2) = "page"
mArrContent(28, 3) = "Test"
mArrContent(28, 4) = 46

mArrContent(29, 0) = 1
mArrContent(29, 1) = 263
mArrContent(29, 2) = "page"
mArrContent(29, 3) = "so"
mArrContent(29, 4) = 46

mArrContent(30, 0) = 0
mArrContent(30, 1) = 264
mArrContent(30, 2) = "page"
mArrContent(30, 3) = "Sitemap"
mArrContent(30, 4) = 34
'Call the function to Generate the Nested Array
marrMain = GenerateNestedArray(mArrContent)

'Call the function to Generate the HTML script
Call GenerateHTML(marrMain)
'/**********************************
'This is the function that generate
'the nested array based on a given
'multidimensional array
'/**********************************
Function GenerateNestedArray(ArrContent)
Dim arrMain
Dim arrSub
Dim arrSubContent
Redim arrSub(5)
Redim arrMain(0)
Dim lngCount
For i = 1 to UBound(arrContent)
Redim arrSubContent(0)
if arrContent(i,4) = 34 then
lngCount = lngCount + 1
Redim Preserve arrMain(lngCount)
For j = 0 to 4
arrSub(j) = ArrContent(i,j)
next
arrSub(5) = arrSubContent
arrMain(lngCount) = arrSub
else
for j = 1 to Ubound(arrMain)
For k = 0 to 4
arrSub(k) = arrContent(i,k)
next
arrSub(5) = arrSubContent
if FindParent(arrMain(j), arrSub) = true then
exit for
End if
Next
end if
next
GenerateNestedArray = arrMain
end function

'/**********************************
'This is the function that
'recursively find the parent
'folder of a given page or folder
'and then places the data into
'the fifth element of the parent array
'/**********************************
Function FindParent(arrParent, arrContent)
On error resume next
Dim arrSub(5)
Dim arrTemp(5)
Dim arrSubContent(0)
Dim arrSubArray
Dim lngCount
if arrParent(1) = arrContent(4) then
For j = 0 to 4
arrSub(j) = arrContent(j)
next
arrSub(5) = arrSubContent
if Ubound(arrParent(5)) = 0 then
lngCount = 1
redim ArrSubArray(1)
arrSubArray(1) = arrSub
else
lngCount = Ubound(arrParent(5)) + 1
Redim arrSubArray(lngCount)
for j = 1 to lngCount -1
arrSubArray(j)= arrParent(5)(j)
Next
arrSubArray(lngCount) = arrContent
end if
arrParent(5) = arrSubArray
FindParent = true
Exit Function
elseif Ubound(arrParent(5)) > 0 then
for i = 1 to Ubound(arrParent(5))
blnFindParent = FindParent(arrParent(5)(i), arrContent)
if blnFindParent = true then
Exit function
end if
next
end if
FindParent = false
End Function

'/**********************************
'This is the function that
'Generates the HTML script
'which then recursively call
'WriteData function to separate
'each group
'/**********************************
Function GenerateHTML(arrMain)

For i = 1 to Ubound(arrMain)
Call WriteData(arrMain(i))
response.write "<br>"
next
End function
Function WriteData(arrData)
on error resume next
Dim arrSub(5)
response.write "<ul>"
response.write "<li>" & arrData(2) & " " & arrData(3)
if Ubound(arrData(5)) > 0 then
for j=1 to Ubound(arrData(5))
Call WriteData(arrData(5)(j))
next
End if
response.write "</li>"
response.write "</ul>"
End function


%>

PHP CODE
-----------------------

<?

//Build up the array
$mArrContent[1][0]=0;
$mArrContent[1][1]=42;
$mArrContent[1][2]="folder";
$mArrContent[1][3]="Leistungen";
$mArrContent[1][4]=34;

$mArrContent[2][0]=1;
$mArrContent[2][1]=48;
$mArrContent[2][2]="page";
$mArrContent[2][3]="Evaluation";
$mArrContent[2][4]=42;

$mArrContent[3][0]=1;
$mArrContent[3][1]=47;
$mArrContent[3][2]="page";
$mArrContent[3][3]="Forschung";
$mArrContent[3][4]=42;

$mArrContent[4][0]=1;
$mArrContent[4][1]=49;
$mArrContent[4][2]="page";
$mArrContent[4][3]="Beratung";
$mArrContent[4][4]=42;

$mArrContent[5][0]=0;
$mArrContent[5][1]=43;
$mArrContent[5][2]="folder";
$mArrContent[5][3]="Themen";
$mArrContent[5][4]=34;
$mArrContent[6][0]=1;
$mArrContent[6][1]=51;
$mArrContent[6][2]="page";
$mArrContent[6][3]="Verkehr, Umwelt & Energie";
$mArrContent[6][4]=43;

$mArrContent[7][0]=1;
$mArrContent[7][1]=52;
$mArrContent[7][2]="page";
$mArrContent[7][3]="Soziale Sicherheit & Integration";
$mArrContent[7][4]=43;

$mArrContent[8][0]=1;
$mArrContent[8][1]=53;
$mArrContent[8][2]="page";
$mArrContent[8][3]="Bildung & Familie";
$mArrContent[8][4]=43;

$mArrContent[9][0]=1;
$mArrContent[9][1]=54;
$mArrContent[9][2]="page";
$mArrContent[9][3]="Reformen";
$mArrContent[9][4]=43;

$mArrContent[10][0]=1;
$mArrContent[10][1]=147;
$mArrContent[10][2]="page";
$mArrContent[10][3]="Gesundheit";
$mArrContent[10][4]=43;

$mArrContent[11][0]=1;
$mArrContent[11][1]=251;
$mArrContent[11][2]="page";
$mArrContent[11][3]="test";
$mArrContent[11][4]=43;

$mArrContent[12][0]=0;
$mArrContent[12][1]=45;
$mArrContent[12][2]="folder";
$mArrContent[12][3]="Projekte & Publikationen";
$mArrContent[12][4]=34;

$mArrContent[13][0]=1;
$mArrContent[13][1]=113;
$mArrContent[13][2]="folder";
$mArrContent[13][3]="Projekte";
$mArrContent[13][4]=45;
$mArrContent[14][0]=2;
$mArrContent[14][1]=138;
$mArrContent[14][2]="page";
$mArrContent[14][3]="Test Projekt";
$mArrContent[14][4]=113;
$mArrContent[15][0]=2;
$mArrContent[15][1]=154;
$mArrContent[15][2]="page";
$mArrContent[15][3]="Noch ein Testprojekt";
$mArrContent[15][4]=113;

$mArrContent[16][0]=0;
$mArrContent[16][1]=125;
$mArrContent[16][2]="folder";
$mArrContent[16][3]="Publikationen";
$mArrContent[16][4]=45;
$mArrContent[17][0]=0;
$mArrContent[17][1]=117;
$mArrContent[17][2]="page";
$mArrContent[17][3]="Aktuelle Projekte & Publikationen";
$mArrContent[17][4]=45;
$mArrContent[18][0]=0;
$mArrContent[18][1]=118;
$mArrContent[18][2]="page";
$mArrContent[18][3]="Verkehr, Umwelt & Energie";
$mArrContent[18][4]=45;
$mArrContent[19][0]=0;
$mArrContent[19][1]=119;
$mArrContent[19][2]="page";
$mArrContent[19][3]="Soziale Sicherheit & Integration";
$mArrContent[19][4]=45;
$mArrContent[20][0]=0;
$mArrContent[20][1]=120;
$mArrContent[20][2]="page";
$mArrContent[20][3]="Bildung & Familie";
$mArrContent[20][4]=45;

$mArrContent[21][0]=0;
$mArrContent[21][1]=121;
$mArrContent[21][2]="page";
$mArrContent[21][3]="Reform & Internationale Entwicklung";
$mArrContent[21][4]=45;

$mArrContent[22][0]=0;
$mArrContent[22][1]=46;
$mArrContent[22][2]="folder";
$mArrContent[22][3]="Portrait";
$mArrContent[22][4]=34;

$mArrContent[23][0]=1;
$mArrContent[23][1]=143;
$mArrContent[23][2]="page";
$mArrContent[23][3]="Verst‰ndnis";
$mArrContent[23][4]=46;

$mArrContent[24][0]=1;
$mArrContent[24][1]=58;
$mArrContent[24][2]="page";
$mArrContent[24][3]="Team";
$mArrContent[24][4]=46;

$mArrContent[25][0]=1;
$mArrContent[25][1]=144;
$mArrContent[25][2]="page";
$mArrContent[25][3]="Auftraggeber";
$mArrContent[25][4]=46;

$mArrContent[26][0]=1;
$mArrContent[26][1]=146;
$mArrContent[26][2]="page";
$mArrContent[26][3]="Partner im Ausland";
$mArrContent[26][4]=46;

$mArrContent[27][0]=1;
$mArrContent[27][1]=145;
$mArrContent[27][2]="page";
$mArrContent[27][3]="Stellenangebot";
$mArrContent[27][4]=46;

$mArrContent[28][0]=1;
$mArrContent[28][1]=262;
$mArrContent[28][2]="page";
$mArrContent[28][3]="Test";
$mArrContent[28][4]=46;

$mArrContent[29][0]=1;
$mArrContent[29][1]=263;
$mArrContent[29][2]="page";
$mArrContent[29][3]="so";
$mArrContent[29][4]=46;

$mArrContent[30][0]=0;
$mArrContent[30][1]=264;
$mArrContent[30][2]="page";
$mArrContent[30][3]="Sitemap";
$mArrContent[30][4]=34;
//Call the function to Generate the Nested Array

$marrMain=GenerateNestedArray($mArrContent);

//Call the function to Generate the HTML script

print GenerateHTML($marrMain);

///**********************************
// This is the function that generate
// the nested array based on a given
// multidimensional array
///**********************************

function GenerateNestedArray($arrContent) {

$arrMain = array();
$arrSub = array();
$arrSubContent = array();

for ($i=1;$i<=count($arrContent);$i++) {

if ($arrContent[$i][4]==34) {
$lngCount++;
for ($j=0;$j<=4;$j++) {
$arrSub[$j] = $arrContent[$i][$j];
}
$arrSub[5] = $arrSubContent;
$arrMain[$lngCount] = $arrSub;
} else {

for ($j=0;$j<count($arrMain);$j++) {

for($k=0;$k<4;$k++){
$arrSub[$k] = $arrContent[$i][$k];
}
$arrSub[5] = $arrSubContent;
if (FindParent($arrMain[$j],$arrSub)===false) {
break;
}
}

}
}

return $arrMain;
}

///**********************************
// This is the function that
// recursively find the parent
// folder of a given page or folder
// and then places the data into
// the fifth element of the parent array
///**********************************

function FindParent($arrParent,$arrContent) {

$arrSub = array();
$arrSubContent = array();
$arrSubArray = array();

if ($arrParent[1]==$arrContent[4]) {

for ($j=0;$j<=4;$j++) {
$arrSub[$j] = $arrContent[$j];
}
$arrSub[5] = $arrSubContent;

if(count($arrParent[5])==0) {
$lngCount = 1;
$arrSubArray[] = $arrSub;
} else {
$lngCount = count($arrParent[5])+1;
for($j=1;$i<=$lngCount-1;$j++) {
$arrSubArray[$j] = $arrParent[5][$j];
}
$arrSubArray[$j] = $arrContent;
}

$arrParent[5] = $arrSubArray;
return true;

} else if (count($arrParent[5])>0) {

for ($i=1;$i<=count($arrParent[5]);$i++) {
$blnFindParent = FindParent($arrParent[5][$i],$arrContent);
if ($blnFindParent == true) {
break;
}
}
}

return false;

}
///**********************************

//This is the function that

//Generates the HTML script

//which then recursively call

//WriteData function to separate

//each group

///**********************************

function GenerateHTML($arrMain)
{

for ($i=1; $i<=count($arrMain); $i=$i+1)
{

WriteData($arrMain[$i]);
print "<br>";

}

return $function_ret;
}
function WriteData($arrData)
{
extract($GLOBALS);
print "<ul>";
print "<li>".$arrData[2]." ".$arrData[3];
if (count($arrData[5])>0)
{

for ($j=1; $j<=count($arrData[5]); $j=$j+1)
{

WriteData($arrData[5]($j));

}

}

print "</li>";
print "</ul>";
}

?>
Jul 17 '05 #1
3 1810
Aldo wrote:
i'm trying to translate this asp code to php, but i can't get it work right.
could anyone help me? thanks!

[snip code]

maybe http://www.google.com/search?q=asp%20to%20php

--
USENET would be a better place if everybody read:
http://www.expita.com/nomime.html
http://www.netmeister.org/news/learn2quote2.html
http://www.catb.org/~esr/faqs/smart-questions.html
Jul 17 '05 #2
*** Aldo escribió/wrote (11 Oct 2004 10:16:16 -0700):
i'm trying to translate this asp code to php, but i can't get it work right.
could anyone help me?


Maybe if you could shorten the question... Nobody's going to check six
hundred lines of code for you.
--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Jul 17 '05 #3
Yes i think you're right ;-)…

here the two functions I can't get to work in php.
the array who is feeding the function "GenerateNestedArray" has this structure:
$mArrContent[1][0]=0; 'counter
$mArrContent[1][1]=42; 'id
$mArrContent[1][2]="folder"; 'folder or page
$mArrContent[1][3]="Leistungen"; 'title
$mArrContent[1][4]=34; 'parent id

my goal is to build a multidimensional array with the right folder structure
ASP
-------------
'Call the function to Generate the Nested Array
marrMain = GenerateNestedArray(mArrContent)

'/**********************************
'This is the function that generate
'the nested array based on a given
'multidimensional array
'/**********************************
Function GenerateNestedArray(ArrContent)
Dim arrMain
Dim arrSub
Dim arrSubContent
Redim arrSub(5)
Redim arrMain(0)
Dim lngCount
For i = 1 to UBound(arrContent)
Redim arrSubContent(0)
if arrContent(i,4) = 34 then
lngCount = lngCount + 1
Redim Preserve arrMain(lngCount)
For j = 0 to 4
arrSub(j) = ArrContent(i,j)
next
arrSub(5) = arrSubContent
arrMain(lngCount) = arrSub
else
for j = 1 to Ubound(arrMain)
For k = 0 to 4
arrSub(k) = arrContent(i,k)
next
arrSub(5) = arrSubContent
if FindParent(arrMain(j), arrSub) = true then
exit for
End if
Next
end if
next
GenerateNestedArray = arrMain
end function

'/**********************************
'This is the function that
'recursively find the parent
'folder of a given page or folder
'and then places the data into
'the fifth element of the parent array
'/**********************************
Function FindParent(arrParent, arrContent)
On error resume next
Dim arrSub(5)
Dim arrTemp(5)
Dim arrSubContent(0)
Dim arrSubArray
Dim lngCount
if arrParent(1) = arrContent(4) then
For j = 0 to 4
arrSub(j) = arrContent(j)
next
arrSub(5) = arrSubContent
if Ubound(arrParent(5)) = 0 then
lngCount = 1
redim ArrSubArray(1)
arrSubArray(1) = arrSub
else
lngCount = Ubound(arrParent(5)) + 1
Redim arrSubArray(lngCount)
for j = 1 to lngCount -1
arrSubArray(j)= arrParent(5)(j)
Next
arrSubArray(lngCount) = arrContent
end if
arrParent(5) = arrSubArray
FindParent = true
Exit Function
elseif Ubound(arrParent(5)) > 0 then
for i = 1 to Ubound(arrParent(5))
blnFindParent = FindParent(arrParent(5)(i), arrContent)
if blnFindParent = true then
Exit function
end if
next
end if
FindParent = false
End Function

PHP
--------------------

//Call the function to Generate the Nested Array
$marrMain=GenerateNestedArray($mArrContent);

//Call the function to Generate the HTML script
GenerateHTML($marrMain);

///**********************************
// This is the function that generate
// the nested array based on a given
// multidimensional array
///**********************************
function GenerateNestedArray($arrContent) {

$arrMain = array();
$arrSub = array();
$arrSubContent = array();

for ($i=1;$i<=count($arrContent);$i++) {

if ($arrContent[$i][4]==34) {
$lngCount++;
for ($j=0;$j<=4;$j++) {
$arrSub[$j] = $arrContent[$i][$j];
}
$arrSub[5] = $arrSubContent;
$arrMain[$lngCount] = $arrSub;

} else {

for ($j=1;$j<=count($arrMain);$j++) {

for($k=0;$k<4;$k++){
$arrSub[$k] = $arrContent[$i][$k];
}
$arrSub[5] = $arrSubContent;
if (FindParent($arrMain[$j],$arrSub)===false) {
break;
}
}

}
}

return $arrMain;
}

///**********************************
// This is the function that
// recursively find the parent
// folder of a given page or folder
// and then places the data into
// the fifth element of the parent array
///**********************************
function FindParent($arrParent,$arrContent) {

$arrSub = array();
$arrSubContent = array();
$arrSubArray = array();

if ($arrParent[1]==$arrContent[4]) {

for ($j=0;$j<=4;$j++) {
$arrSub[$j] = $arrContent[$j];
}
$arrSub[5] = $arrSubContent;

if(count($arrParent[5])==0) {
$lngCount = 1;
$arrSubArray[] = $arrSub;
} else {
$lngCount = count($arrParent[5])+1;
for($j=1;$i<=$lngCount-1;$j++) {
$arrSubArray[$j] = $arrParent[5][$j];
}
$arrSubArray[$j] = $arrContent;
}

$arrParent[5] = $arrSubArray;
return true;

} else if (count($arrParent[5])>0) {

for ($i=1;$i<=count($arrParent[5]);$i++) {
$blnFindParent = FindParent($arrParent[5][$i],$arrContent);
if ($blnFindParent == true) {
break;
}
}
}

return false;

}

"Alvaro G. Vicario" <kA*****************@terra.es> wrote in message news:<lg****************************@40tude.net>.. .
*** Aldo escribió/wrote (11 Oct 2004 10:16:16 -0700):
i'm trying to translate this asp code to php, but i can't get it work right.
could anyone help me?


Maybe if you could shorten the question... Nobody's going to check six
hundred lines of code for you.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Link | last post by:
Hello!I am new to Python and I would like to rewrite the following code to python use to call by C program:// JPython code ======================================= import...
2
by: VM | last post by:
I'm about to work on a 'buggy' WIndows C GUI application that was entirely made in C. All the user controls were all hard-coded and the code is pretty hard to understand. The application was made...
5
by: T | last post by:
Hi group, I'm trying to create a temporary replacement scheme for a particular url that gets generated all over an existing app. It would be very difficult to find every spot where the url gets...
1
by: baroque Chou | last post by:
Thanks for the help available on msdn, I have succesful done the rewrite job. But there are 2 problems arise: 1.when I try to rewrite the url from say: www.yoursite.com/beverages.aspx to...
7
by: Stan Canepa | last post by:
I am looking for good documentation to help support rewriting a VB 6 app in Dot Net. I looking for things like VB 6 being unsupported in March 2008, general performance improvements, at what point...
14
by: Stan Canepa | last post by:
This post is mostly for discussion. Why rewrite in .NET? Just a general discussion not related to any specific details. I was just looking to see what reasons developers are looking to, to help...
18
chunk1978
by: chunk1978 | last post by:
hi everyone. i just started learning how to dynamically show/hide elements with a checkbox toggle. i would like to know if it's possible to delete/rewrite elements instead of simply show/hide...
4
by: mainargv | last post by:
hi How do you rewrite codes with " ... va_list va_start va_etc", so that simple c compiler don't have to deal with them. I have written a simple c->verilog compiler but it can't deal with...
10
by: not_a_commie | last post by:
I've seen studies before showing that it is better to rewrite code when more than 25% (or whatever) of the code needs to be changed. I can't seem to locate any references for that at the moment. Do...
0
by: George | last post by:
Can not figure out why but if I have button with PostBackUrl specified it breaks UrlRewrite. All buttons stop working. Form submits but corresponded event procedure never called. And it only...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.