.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh
Post New Web Links

translate coldfusion to asp.net

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :ASP.Net

I have one page that is written in coldfusion that I would like to translate into asp.net.  I have never used coldfusion and don't even know where to start.  Is there someone out there that can help?

View Complete Post

More Related Resource Links

{ End Bracket }: Translate This Page


This month we examine the Microsoft translation Web service and show you how you can incorporate translation services into your own Web application.

Sandor Maurice & Vikram Dendi

MSDN Magazine April 2009

Coldfusion AES encryption

Hi all, I saw another post on the subject but it was for a different type of encryption. Anyway, we have some values that are stored in our database using the Coldfusion ecrypt() function. We are using AES and Hex. it looks like this: <cfset Variables.THE_VALUE_ENCRYPTED = Encrypt("#ARGUMENTS.THE_VALUE#","#Variables.ENCRYPT_KEY#","AES","Hex")> The key is 24 bit.  For the life of us, we can't find any way to decrypt this in .net. Can someone offer some guidance? IT would be greatly appreciated.

translate vb.net to C# of property use

I have defined a property in a masterpage in vb.net.I want to use the same code in a C# project, but I have no idea how to translate it. And yes Ive seen pages like: http://www.carlosag.net/Tools/CodeTranslator/and http://support.microsoft.com/kb/319265But I'm new, so I have no idea.Here's the code:Public Property BreadCrumb() As String        Get            Return lblBreadcrumb.Text        End Get        Set(ByVal path As String)            Dim BreadCrumbBuilder As New StringBuilder            BreadCrumbBuilder.Append("<li><a title=""Home"" href=""/"">Home</a></li>")            If path <> "" Then                Dim a As Array = path.Split(";")                If a.Length = 2 Then                    BreadCrumbBuil

Unable to translate Unicode character \uD8D6 at index 5 to specified code page.

I' have the error "Unable to translate Unicode character \uD8D6 at index 5 to specified code page." when I call a remote service, using a method that uploads some data (basically data readed from WMI and from Win Registry on the client host) from the client to the server. The server is wsHttpBinding, hosted in IIS7 via an ASP.NET 4.0 Web Site (svc file). The client is an exe, compiled in .NET 3.5 I've tried to set "textEncoding="utf-16"" on the binding, either on server and on client, but still the same. I've no idea about a solution :( Any idea? Thanks  

want to translate some text using globalization

Hi,   I am working on globalization project.In my search.aspx page I have PagedGridview.I has property called EmptyDataText which is set to "NoResults".(EmptyDataText="No Results") How can I translate "No Results" Within EmptyDataText?I tried to create key both global and local resource file.   In my local resource I tried in search.aspx.fr-FR.resx I have key called Search and its value is No Resu'dfd .Then in gridview I tried like EmptyDataText=<%=GetLocalResourceObject("Search") %> But it is not working.   Then I tried using global resource EmptyDataText=<%=Resources.Product.Seacrh%> where Product is resx(class)   <util:PagedGridView ID="product" runat="server" AllowPaging="true"         EmptyDataText="No Results" AllowSorting="true" PageSize="10"         OnPageIndexChanging="PageSearchResults" AutoGenerateColumns="false" OnRowCreated="HandleHeader"         >  

Who can translate this? Small PHP to ASP .NET

Hi,I'm a PHP Developer but I want to help one of my friends who is a newbie. Can anyone from here translate this code from PHP to ASP .NET?Part one: TO BE PLACED IN THE HEADER!/* BEGIN */if(isset($_REQUEST['ref']) && $_REQUEST['ref'] != ""){       $expire = time()+60*60*24*30; // 30 days     $do = setcookie('ref', $_REQUEST['ref'], $expire);    if( ! $do){        $_SESSION['ref'] = $_REQUEST['ref'];     }   }else{       $expire = time()+60*60*24*30; // 30 days     $do = setcookie('ref', '', $expire);    if( ! $do){        $_SESSION['ref'] = $_REQUEST['ref'];     }   }/* END */Part two: TO BE PLACED IN THE FORM! /* BEGIN */<input type="hidden" name="ref" value="<?php echo isset($_COOKIE['ref']) ? $_COOKIE['ref'] : $_SESSION['ref'];  ?>"/>/* END */The code tries to write a cookie with the name ref and if is not able to write that cookie it will create a session var with the name ref. The value must be retrieved after that in a hidden form field.Thank you in advance.Marius

Converting from Coldfusion to ASP.NET C#

Still new to ASP and C# and trying to make our newest website in C#.  I have a radio button list that is databound to my sql server.  For the data set it is pulling, there are two options for the data.  The first is that the data is = '-'.  In this case, I want the data in the SQL database to display as a label.  If there is an actual value (such as lets say 100-02553B) I want the data to display as a radio button with the value for the button being the associated value when selected (100-02553B)I've been able to get this to work on my cold fusion site without a problem, but have been at a dead end in ASP for a while.The code I have for Cold Fusion is:                  <tr>                 <td style="width: 92px;">&nbsp;</td>                 <td style="width: 877px;">                  <cfoutput>                   <cfif URL.ModelName NEQ ''>        &nb

google Translate Encoding Problems With C#

//Create a Google Translate String To Translate From Google. string Translate(string inputStr, string fromLanguage, string toLanguage) { string url = string.Format("http://translate.google.com/translate_a/t?client=t&text={0}&hl=en&sl={1}&tl={2}&multires=1&pc=0&sc=1", inputStr, fromLanguage, toLanguage); WebClient tmpClient = new WebClient(); tmpClient.Encoding = System.Text.Encoding.UTF8; string result = tmpClient.DownloadString(url); return result; } Now The Problem is If You Pass something like that Translate("Hello","en","ur"); Return String: JSON String But Couldn't Really Get The Write Method to Get ???? ???? Instead Of ? ?? ?? ? { ur: [[["? ?? ?? ?","Hello World",""]],,"en"] }   In Browsers The URL is Showing Correct Returned String. Urdu is unicode Language. The String Return in result is Whole Messed up with ???? ?? ???? something like that. I tried to Convert it in Different Encodings But Not Couldn't get Anythine usefull. How Can I Correct That I Wanted To Further Save It In XML File.

Cannot translate an object after executing a storyboard




I cannot translate an object after the same object has been translated via a storyboard.


Here is the sample code:


<Window x:Class="WpfApplication1.MainWindow"
    Title="MainWindow" Width="400"<

How to pass session variables from .net to coldfusion


We are in the process of refactoring from cf to .net, so, I am working on the Login page and converting it from cf to .net. So, when I am autheticated and enter into our website, I need to redirect it to a cfm page (just temporary, since we will be refactoring that also eventually).

So, I am autheticated (using CustomMembership Provider model for sql server) and then when I redirect to the cfm, the app.cfm should validate the .net session variables. Here is where i am stuck:

I have the .net session variables in the aspx side:something like

Session["UserId"].ToString() = Value from a login txt box (also authenticated against data in the database)

Session["UserName"].ToString() = Value from the db corresponding to the User Name entered in the text box.



So, now I have all the session variables in the .net side. Now, how do I retreive these .net session in the cf side? Any small peice of code to retrive the asp.net session variable in the application.cfm side would be great.

Is it possible to translate URL by routing?


I use simple default route


The problem is that I want to translate some paths in my language but names of the controllers and actions should be leaved in english. For example I want to map URL "/wydarzenia/4/rejestruj" to "/events/4/register'.

I tried

                new { controller = "Events", action = "RegisterToEvent" });

But this doesn't work. Any ideas?

allow hotmail and translate.google by isa server


default rule denay all traffic

i want to allow hotmail.com and translate.google

i traying to allow by domains like *.hotmail  and *.live.com  *.translate.google.com

but not work with me ??

what is the solution ......??? thx




I want to translate SharePoint 2010 to my language and use it my language.

How can I do it?

I have Windows 2008 Server R2

SharePoint 2010 (64Bit)

Visual Studio 2008(SQL Server Express)


Help me to do this job.

also I want to change data setting is it possible to do it?

Translate from C# to VB


I have this little function for forcing a download of MP3 files. I have it integrated into my VB app but would like it to be converted from C# to VB so that I can use other functions in my APP_Code directory. If anyone can help I would surely appreciate it. I have tried the automatic translators on the web but they don't seem to be able to handle this little widget. Here is the code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Forces Download/Save rather than opening in Browser
/// </summary>
public static class HttpExtensions
    public static void ForceDownload(this HttpResponse Response, string virtualPath, string fileName)
        Response.AddHeader("content-disposition", "attachment; filename=" + fileName);
        Response.ContentType = "";

Thanks in advance. 

translate from HTML color code to Drawing.color


using vb.net/asp.net 2005.

I am trying to set the border color of cells of my datagrid to an HTML color code: #c1c1c1

I have the following and would like to convert it so that it uses my color code and not the text of the color name, does anyone know the syntax?  what I have is:

e.Row.Cells(1).BorderColor = Drawing.Color.Red



Translate Named Sets



I have some Named Sets that I want to translate. I have done exactly the same way as with the Calculated Members but the Sets don´t use the translations? Any ide why?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend