Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82226

Concatenate fields at server level

$
0
0

Hi

I need to concatenate 2 fields at the server level as they need to be encrypted using a Windows encryption api.

Here's what I have:

            HttpRequest formData = System.Web.HttpContext.Current.Request;

            using (Database db = new Database(SetGetDbType2, SetGetDbConnection))
            {
                editor = new Editor(db, "ExportedData").Model<ExportedDataDBModel>();
                editor.Field(new Field("id")
                    .Set(false)
                );
                editor.Field(new Field("File1")
                    .Set(false)
                );
                editor.Field(new Field("File2")
                    .Set(false)
                );
                editor.Field(new Field("File3")
                    .Set(false)
                );
                editor.TryCatch(false);
                editor.Debug(true);
                editor.Process(formData);
                editor.Data();
            }

So values under fields File1 and File2 need to be concatenated and then encrypted under File3. Isthis possible? I'm aware that fields can be strung together under JS with render but what about at server level, maybe in a GetFormatter? Many thanks.


Viewing all articles
Browse latest Browse all 82226

Trending Articles