PC Review


Reply
Thread Tools Rate Thread

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

 
 
lily82
Guest
Posts: n/a
 
      1st Mar 2005
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 **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
 
D0tN3t C0d3r
Guest
Posts: n/a
 
      1st Mar 2005
<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

lily82 wrote:
> 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 **
> ----------------------------------------------------------
> http://www.usenet.com

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to transform text to code HENDRY_del_FUEGO via AccessMonster.com Microsoft Access VBA Modules 0 12th Nov 2007 07:26 AM
Code transform =?Utf-8?B?SmVmZiBNZXRjYWxm?= Microsoft Access Form Coding 1 23rd Aug 2006 07:18 PM
Transform, crosstabs via Visual Basic Code richmarin@earthlink.net Microsoft Access Queries 1 4th Apr 2005 04:28 AM
Code to transform layout of existing data =?Utf-8?B?RGFuaWVs?= Microsoft Excel Programming 1 21st Jun 2004 08:02 PM
How to XslTransform.Transform to new web page from code behind? John Holmes Microsoft ASP .NET 4 11th Mar 2004 12:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:18 PM.