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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:03:43+00:00 2026-05-15T15:03:43+00:00

I have a site that has a big form page and about half of

  • 0

I have a site that has a big form page and about half of the form will be used elsewhere, and it will be exactly the same. I want the same access to all of its elements wherever I place it, but I don’t want to copy and paste the code around because that will make for too much room for error. I’d prefer to not use a WebUserControl, as I’ll be using jQuery and Javascript inside this form and I’ve had rough experiences combining those with a control, while still having access to all of the elements.

I really wish the boss wasn’t so bent on using ASP…PHP where are you when I need you!!?

  • 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-15T15:03:44+00:00Added an answer on May 15, 2026 at 3:03 pm

    You should use a combination of a Master Page and User Controls. There are pains in doing this – you should overcome them and become proficient at doing this. While this may be an isolated technology, those skills are certainly reusable in other areas of development (non ASP.NET) as well. You would do yourself a HUGE favor by becoming comfortable and even efficient at working with something like this.

    Keep in mind that any jQuery/javascript you include on a reusable component will be included multiple times unless you change that (there are script register functions you can use to only load it once). But also keep in mind if you dynamically generate some of it based on control names, those control names will be very different than what you expect, so you need to use something like this (syntax is prolly off – I’m not testing this):

    var firstName = document.getElementById('<% FirstName.ClientID %>').value;
    

    Now the other thing to keep in mind is that line I just wrote there, while it does look for the ClientID, it’s still not very reusable because it has the global variable named firstName, and that will be a problem when I have a second user control that wants that same global variable.

    There are lots of ways to continue down this path…

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

Sidebar

Related Questions

first i want to say that this site has been a really big help
I have an ecommerce site that has about 8 CSS files linked from the
I have a site that has an Rss feed, and this feed is consumed
I have a site that has a /sites/default/files/ directory where user content is typically
I have a site that has 2 DIV tags, one floats left the other
Information: I have a site that has a design on index.php, and then you
I have a paging control on my site that has it's container element set
I have a two column site layout that has the content of the left
I have a Rails 2.1.2 site that only has html templates e.g. jobs.html.erb, so
I have a very complicated site built on CSS3 that has html elements 3d-transformed,

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.