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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:11:28+00:00 2026-05-20T13:11:28+00:00

I am coming from an ASP.Net MVC background, so I like to design things

  • 0

I am coming from an ASP.Net MVC background, so I like to design things well. I just started getting back into ASP.Net web forms again because my job requires it.

I have a user control which I would like to use to encapsulate an entire component (layout and code). Depending on certain settings for this control the layout may change, or I may call events, etc… Is it good practice to do something like this?

<%# if(this.SomeProperty) …. %> or <%# if(this.something) this.runSomeMethod()) %>

I have no clue what is good design regarding web user controls.

  • 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-20T13:11:29+00:00Added an answer on May 20, 2026 at 1:11 pm

    Since this is rather subjective I’ll give you my subjective opinion: Except in very few cases, I prefer to use codebehind to drive control and page logic. I don’t mind “tag soup” per se, but I think it’s far clearer to just do everything in proper code. When you have codebehind you also get the benefit of having a concrete class to refer to, which is useful in many ways, especially in larger projects.

    That said, there’s nothing fundamentally wrong with what you’re doing.

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

Sidebar

Related Questions

I just started ASP.NET MVC (coming from WebForms) and I'm struggling with some really
I'm diving into ASP.NET MVC and I'm coming from a Ruby on Rails background.
I'm coming to asp.net MVC 4 from a background in Rails, and I am
I'm new to ASP.NET MVC, coming from a PHP MVC background. It's been kind
I am new to ASP.NET MVC, coming from a web forms background in the
I have a simple ASP.NET MVC 3 dummy app (just learning MVC coming from
I'm working on an Asp.net website (it's been awhile) coming from an MVC background.
I'm trying to learn ASP.NET MVC 3 coming from a web forms background. I'm
Coming from ASP.NET into WindowsForms app development I was expecting to see the similar
I'm keen to teach myself ASP.NET MVC 2 (coming from a heavy embedded or

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.