protected string userImageDir(string ID)
 { 
  string ReversedPaddedUserID = Reverse(Right(ID, 4)); 
  string Directory1 = Left(ReversedPaddedUserID, 2); 
  string var Directory2 = Right(ReversedPaddedUserID, 2); 
  string Directory3 = ID; 
  return (Directory1 + @"\" + Directory2 + @"\" + Directory); 
} 

well the syntax would look like that although the string functions would differ.
http://www.csharphelp.com/archives/archive12.html
may get you started on reworking the string functions and others here
may help you get them.


On 6/1/05, Brian Robinson <[EMAIL PROTECTED]> wrote:
>  Hello, 
>  I am fudging my way through converting my website to c#. 
>  
>  I have been trying to figure out how to make the following coldfusion
>  snippet in C#, please help !!! 
>  
>  function userImageDir(ID) 
>  { 
>  var ReversedPaddedUserID = Reverse(Right(ID, 4)); 
>  var Directory1 = Left(ReversedPaddedUserID, 2); 
>  var Directory2 = Right(ReversedPaddedUserID, 2); 
>  var Directory3 = ID; 
>  return "#Directory1#/#Directory2#/#Directory3#/"; 
>  } 
>  
>  please note that the input variable "ID" is something like 123456 
>  
>  Any Ideas?
>  
>  
>  
>  
>  ________________________________
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to