Groups | Blog | Home
all groups > dotnet general > february 2005 >

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


lilyminako NO[at]SPAM yahoo-dot-com.no-spam.invalid
2/28/2005 9:44:43 PM
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
%>


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
D0tN3t C0d3r
3/1/2005 11:45:30 AM
<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

[quoted text, click to view]
AddThis Social Bookmark Button