Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 121615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:59:56+00:00 2026-05-11T03:59:56+00:00

Does anyone know of examples which show how to encrypt a dataset at the

  • 0

Does anyone know of examples which show how to encrypt a dataset at the client side and send it over to a web service and have it decrypted there?

Another question: What i need to do is a send hundreds of rows of data from a client to a web service and have the web service update the database with these records. I can’t think of any other way to do this without using a dataset. Is there a better method?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:59:56+00:00Added an answer on May 11, 2026 at 3:59 am

    As far as the encryption is concerned, why try to reinvent the wheel? Just connect to the webservice over SSL – it’ll most likely be much safer than a homegrown alternative.

    I would probably create a custom struct/object and send an array of those to the webservice rather than a DataSet. It will mean (slightly) less network traffic; it will make the webservice’s WSDL more descriptive; and it will make it easier for any non-Microsoft apps to talk to the webservice, if that becomes necessary in the future.

    EDIT: An example…

    At the server-side you can declare a custom type (eg, ExampleUser), and then setup your method to accept an array of that type instead of a DataSet:

    [WebService(Namespace='http://example.yourdomain.com/ExampleWebService/')] public class ExampleWebService : System.Web.Services.WebService {     // this is your custom type     public class ExampleUser     {         public int UserID { get; set; }         public string Name { get; set; }         public DateTime DateOfBirth { get; set; }     }      // this is your method     // accepts an array of ExampleUser rather than a DataSet     [WebMethod]     public void UploadUsers(ExampleUser[] usersArray)     {         // do something...     } } 

    In the client application you would add a reference to the webservice. This will enable you to use the ExampleUser type declared in the server-side code above.

    You could then just convert your DataSet to an array of ExampleUser objects before sending it to the webservice:

    // get the number of rows in the DataTable int rowCount = yourDataSet.Tables[0].Rows.Count;  // create an array of ExampleUser with the correct capacity ExampleWebService.ExampleUser[] usersArray =     new ExampleWebService.ExampleUser[rowCount];  // iterate through each row in the table for (int i = 0; i < rowCount; i++) {     DataRow dr = yourDataSet.Tables[0].Rows[i];      // create an ExampleUser object and populate it from the DataRow columns     ExampleWebService.ExampleUser eu = new ExampleWebService.ExampleUser();     eu.UserID = (int)dr['User_ID'];     eu.Name = (string)dr['Name'];     eu.DateOfBirth = (DateTime)dr['Date_Of_Birth'];      // add the ExampleUser object to the array     usersArray[i] = eu; }  // the array is populated so let's call the webservice ExampleWebService.UploadUsers(usersArray); 

    EDIT: Another example…

    If you’re using .NET 3.5 then you can get the client-side down to just a few lines of code by using LINQ and object initialisers to create your array:

    // create and populate the array ExampleWebService.ExampleUser[] usersArray =     yourDataSet.Tables[0].AsEnumerable().Select     (         s => new ExampleWebService.ExampleUser()         {             UserID = (int)s['User_ID'],             Name = (string)s['Name'],             DateOfBirth = (DateTime)s['Date_Of_Birth']         }     ).ToArray();  // the array is populated so let's call the webservice ExampleWebService.UploadUsers(usersArray); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 231k
  • Answers 231k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use the following function like this: Image('/path/to/original.image', '1/1', '150*', './thumb.jpg');… May 13, 2026 at 2:13 am
  • Editorial Team
    Editorial Team added an answer Check you database schema to see if the field (referenced… May 13, 2026 at 2:13 am
  • Editorial Team
    Editorial Team added an answer I figured out the problem - there was a session… May 13, 2026 at 2:13 am

Related Questions

I'm trying to highlight just one specific row in a table using jQuery. The
I would like to be able to hide another application's window from the taskbar,
some time ago I happend to resolve a PG related problem with this SO
I have two lists of two different kinds of objects representing data rows from

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.