can sm 1 help me transform this code to C# code??

  • Thread starter Thread starter lily82
  • Start date Start date
L

lily82

can sm 1 help me transform this code to C# code?? tq so much :wink:

Goto :
<%
Dim counter
Dim page
Dim pages
counter= 10
pages = 20
page = 1
for page = 0 to pages
%><a
href="google_1.asp?searchstring=<%=query%>&start=<%=counter%>"><%=page%></a>
|
<%
counter = counter + 10
next
%>
 
<code>
string query = string.Empty;
int counter = 10;
int pages = 20;

for(int page = 0; page < pages; page++)
{
string href = string.Format("<a
href=\"google_1.asp?searchstring={0}&start={1}">{2}</a>", query,
counter, page);
counter = counter + 10;
}
</code>

HTH,
~d
can sm 1 help me transform this code to C# code?? tq so much :wink:

Goto :
<%
Dim counter
Dim page
Dim pages
counter= 10
pages = 20
page = 1
for page = 0 to pages
%><a
href="google_1.asp?searchstring=<%=query%>&start=<%=counter%>"><%=page%></a>
|
<%
counter = counter + 10
next
%>
 
Back
Top