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 8052067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:27:26+00:00 2026-06-05T07:27:26+00:00

I have a FormView on a ASP.Net Webform along with a ObjectDataSource. Now, the

  • 0

I have a FormView on a ASP.Net Webform along with a ObjectDataSource.

Now, the data that I want to display and allow edit is as follows:

Unique way to access all these properties: Organization ID

Company from DB
LDAP Server from/to DB, a KeyValuePair-like table
Domain Name from/to DB, a KeyValuePair-like table
Use DHCP from/to DB, a KeyValuePair-like table
IP Address from/to WMI utility class, no storage in DB
Subnet Mask from/to WMI utility class, no storage in DB

So, I need to somehow create an Entity of type… umm… SystemSetting at runtime and feed it to the ObjectDataSource and it’ll take care of FormView food-source. Upon Edit, i need to switch to edit mode and upon update, i need to retrieve the values/SystemSetting entity and manually dispatch the value to their respective places.

Now I’m never going to create a new entity. It always display and update. And there is always one entity.

That’s theory. Any quick pointers? Thanks.

  • 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-05T07:27:27+00:00Added an answer on June 5, 2026 at 7:27 am

    The simplest solution is to just create a SystemSetting class with public auto properties of the types you mentioned, then make a List<SystemSetting> out of it, and feed that to the ObjectDataSource (if your tables don’t have a fixed length, then use a foreach loop to add controls for them on DataBinding event).

    On edit, if your tables have a fixed length, then just two-way databind everything and you’re all set, you’ll automagically get an updated SystemSetting class for your ObjectDataSource update method.

    If not, then just handle the updating event yourself (specify a phantom update method for ObjectDataSource and cancel it right then), read input fields one by one (group them under a separate container for each table, or let them share a prefix or suffix for id, so you know where they belong), and dispatch the values to their respective places.

    You’ll have to provide some more details, or better yet a code sample, for a more complete solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the problem is that I do have an ASP.NET TextBox in a FormView with
In ASP.NET, I have a FormView which is bound to an ObjectDataSource. The FormView
I have an asp.net Formview connected to an SQL datasource. When I create/edit/delete a
I have a FormView control in an ASP.NET 2.0 app. I've got the database
Greetings! I have a Repeater control that's using an XmlDataSource control. <asp:FormView id=myFormView runat=server
When i switch an ASP.Net Formview from readonly mode to edit mode it takes
I have been trying to use declarative data bound ASP.NET, and struggling with the
I have a FormView control in an ASP.NET page. I use the InsertItemTemplate and
I have a validation summary inside a asp.net formview and the validators just don't
I have an ASP.NET FormView within an updatepanel. I'm auto-saving the form by setting

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.