Dynamic controls RRS feed

  • Question

  • User727658907 posted

    Hi all, it's been about 10 years since I used asp for the last time (I never liked web dev BTW I was more into desk apps). I've been focus on DB administration only all this time. My new manager has asked me to modify a website they have. What he wants to be able to do is adding dynamic content (tabs, links, pictures, etc) on the fly and keep the changes.

    I've found multiple examples to add dynamic controls and I'm OK with that, but how do you save/keep those changes in the server??

    Thanks in advance for helping this rusted dev :)

    Saturday, March 24, 2018 4:12 PM

All replies

  • User475983607 posted

    The common approach is a data driven design.  Build a DB schema to support the application.  Use data bound controls to build the UI.  This is the fundamental construct of ASP Web Forms.

    If you don't go with the data driven approach, the thing that stumps most developers is dynamic controls must be recreated early in page life cycle.  There is a step in the page life cycle where the POST values are bound to the controls.  If the dynamic controls do not exit at that point, then the controls don't get bound to the POST data. 

    Saturday, March 24, 2018 4:45 PM