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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:01:29+00:00 2026-05-24T05:01:29+00:00

In my scenario, let’s say there is a ASP.Net 4.0 C# page containing a

  • 0

In my scenario, let’s say there is a ASP.Net 4.0 C# page containing a form with several inputs on it. Based upon which state the user is in, the form needs to act in entirely different ways: some fields might be required, some not visible at all, some might have different requirements (state A might only allow numbers 1-5, state B numbers 5-10), etc.

So, to simplify things, let’s just say for any given input on the form, I need to determine whether or not it’s required for the user, again based on their state. For those of you who run into this scenario quite a bit, what’s the best way of implementing a system to handle this? I can see the following options:

Hardcoded – Difficult to maintain, obviously

Custom Database Rule Framework – This seems like it would work; however, it would be somewhat of a pain to maintain depending on how complicated the logic is

Windows Workflow Foundation – This would be able to handle just about any kind of logic, and be decent to maintain, but I’m not sure how this would do performance wise. (could be stored externally in database)

Dynamic Code – Store the logic in a database and run it directly based upon the user. I’ve never done this.. is it possible?

That’s all I’ve come up with at this point, but I’m hoping someone out there has found an elegant solution to handle scenarios with complicated forms like this.

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-05-24T05:01:29+00:00Added an answer on May 24, 2026 at 5:01 am

    I have never worked with WWF, but I have encountered a scenario like this and implemented an entry form for it that works well and is easy to maintain once you understand the system.

    I will discourage you from using hardcoded logic because any degree of complexity will quickly become impossible to maintain. I tried a hybrid approach that included some hardcoding initially and it did not turn out well.

    I ended up creating, as you call it, a custom database rule framework. It is a little extra work to set up config forms to associate user groups with certain codes and pieces of functionality, but in the end it is well worth it for everything to automatically configure itself. Also in my case I was able to farm out user & code setup work to a supervisor in the department that uses the application, so that is a big plus.

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

Sidebar

Related Questions

Let me share the following scenario: I have a ASP.NET intranet Web-based application that
Let's say you have this scenario:a simple blog home-page that loads both static content
Here's my scenario: Let's say I have a stored procedure in which I need
Let's consider this scenario: a freshly create windows form application in which I created
Let's say I have the following scenario: <form action=/something.php method=GET>Click me</div> <script type=text/javascript><!-- $('form').submit(function(e)
Let me try to set the scenario here first. This is done using ASP.NET
My scenario is that I have a .net application (let's say a Console App)
Let's consider the following scenario: a function which can generate code colors from white
Let's say I have a scenario where I have a global plugin (or at
To simplify the scenario, let's say we have a list of People with FirstName

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.