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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:33:35+00:00 2026-05-22T02:33:35+00:00

I have a task to generate user controls, I’m wondering if there’s any guides

  • 0

I have a task to generate user controls, I’m wondering if there’s any guides on that.
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-22T02:33:36+00:00Added an answer on May 22, 2026 at 2:33 am

    I would first ask why you need to “generate” user controls. If you need a lot of very similar controls for some reason, couldn’t you create one user control that adjusts itself depending on some kind of input parameter?

    Assuming that you have a good reason for doing this, though, I can offer the following general T4 advice. Start by writing an example of what you want to generate. Create an actual control like the one you want to generate. If possible, do this as a single file (classic asp style), it will be easier to generate the control as one file than multiples which then have to be associated together inside the project file… very messy. Change the file’s extension to .tt, and start factoring out the parts of the example control that need to change form one generated control to the next. Try altering one aspect of the control at a time, generating the output, and comparing against what you expected. Keep changing one thing at a time until the control you started with has become a template to generate controls like the one you started with.

    T4 templates only know how to write out a single file. Since you want to create multiple controls, you’ll need some extra tools. The T4 Toolbox has what you need to accomplish this, as described here.

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

Sidebar

Related Questions

I have a task: generate private/public key pairs for banks. User data like State,
I have this Maven task to generate Java classes from an XSD file using
I have a Symfony task that generates some files calls exec to a jar
I have task involving reading SAS .xpt files using .NET. For that I'm using
I have a task to do, I need to take data that has been
I have the task to write a user control to display some results by
I have a requirement to have a new task appear in a user's task
Background I have a web app that will create an image from user input.
i have task which takes a parameter and has three modes of results Example
I'm using dhtmlx Gantt Chart UI component which have task list and graphical chart.

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.