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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:33:41+00:00 2026-05-12T11:33:41+00:00

I have developed a user-control which gets bound to an id-field and then enables

  • 0

I have developed a user-control which gets bound to an id-field and then enables editing of records from (various) other sources (linked via this id). This is working fine, but I am struggling to save the data when the form is saved – obviously there’s more to be done than “just” writing the id back.

I wouldn’t like to add extra buttons for the “inner update”, but was hoping to understand the ASP.net-mechanisms well enough to do this they way it should be done. Unfortunately I’m not getting anywhere (and time is running out), so I hope someone could share some insight on how to get this integration working, which events to look at etc.

Thanks in advance 🙂

Michael

Edit: thanks for your comments, I’m trying to give more details on the idea:

<FormView...
   <EditItemTemplate...
      <table...
          <asp:Textbox text="<% Bind('bla1') %>...
          <uc1:MyControl id1="<%# Bind('bla2') %> editeable="True"...
          <asp:ImageButton CommandName="Update"...
...
   <ItemTemplate...
      <table...
          <asp:Textbox text="<%# Bind('bla') %>...
          <uc1:MyControl id1="bla" editeable="False"...

This user-control uc1 displays a whole lot of related records (based on id1) – and in edit-mode also enables editing/adding etc. of these “inner” records.
Now, since users have a “standard-way” of saving-records, I don’t want to interfere by adding a special save-method just because we happen to edit some internal records elsewhere. That shouldn’t matter to the user, UI should behave the same. So that means that I’ll have to take care of saving internally. But how do I know the user wants to save and what would be a best practice to handle this? Is there a way the user-control could be “notified” about the Update-event on the containing control, would I have to make it explicit by customizing the Update-command etc. We’re trying to make it robust and general enough, so that it could easily be re-used. (Still hoping that doesn’t contradict ;))

  • 1 1 Answer
  • 2 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-05-12T11:33:41+00:00Added an answer on May 12, 2026 at 11:33 am

    The way I understand this problem is that you have a button on your webform, but none on your usercontrol. Then when the button is clicked, you want to persist the changes made on the usercontrol. If this is the case, why not create a method on your usercontrol that saves all the changes made, and call this method from the click event of the button on the form?

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

Sidebar

Related Questions

I have developed a application in which user select the particular folder and it
I have developed a application in which user select the particular folder and it
Hai I have developed a standalone application in which when an user logs in,
I've developed a user-control class which i intent to use for buttons . After
I have developed a web site that requires user registration and authentication for some
I have developed some script for detecting when user scroll down a page, and
I have developed a C# WinForms application whereby the user is providing input via
I’m working on a project and have developed the high level user requirements for
I have developed a paging control that I would like to use in a
I have developed a web dashboard which has a structure of controls embedded inside

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.