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

  • SEARCH
  • Home
  • 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 8475951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:02:27+00:00 2026-06-10T18:02:27+00:00

I find that Add method and Set method are same function but I don’t

  • 0

I find that Add method and Set method are same function but I don’t know what different in this 2 method? Can explain it?

  • 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. Editorial Team
    Editorial Team
    2026-06-10T18:02:29+00:00Added an answer on June 10, 2026 at 6:02 pm

    Methods are mapped to Dictionary Add and indexer methods. The Add method will throw an exception if the key already exists. Set method will override existing value.

    ASPxHiddenField hiddenField = new ASPxHiddenField();
    hiddenField.Add("key1", "value1");
    hiddenField.Set("key1", "value2");  // this will properly set key1 value
    hiddenField.Add("key1", "value3");  // this will throw exception
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone knows any free Visual Studio add-in that would find and/or delete dead (unused)
I am trying to find template functions that do: template <typename T> T add(T
I'd like to write an IE add-on that allows me to find a phone
I'm trying to find a way in which I can return a generic set,
I know there is an invoke function that does the stuff, I am overall
I have tried to find information about this but have come up empty handed:
I am using the toggle() method on buttons so that they can have a
I know that the prototype property of JavaScript function objects is copied to the
I find that, Windows 8 will be highly HTML5 + Javascript based Metro Application
I find that I'm repeating myself alot and that is of course no good.

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.