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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:57:18+00:00 2026-05-20T12:57:18+00:00

I am creating a web user control for a simple poll. I am currently

  • 0

I am creating a web user control for a simple poll. I am currently registering it on the page and then referencing it via tagprefix.

The form for the poll is in basic html (no server controls) and is in the front-end of the web control. How can I change the look of the user control depending on the settings passed into it? Is this possible without using server controls?

Update

Can I change the html layout of a user control? If so could someone post some examples. Please note I do not use asp.net form controls, so none of that please 🙂

  • 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-20T12:57:18+00:00Added an answer on May 20, 2026 at 12:57 pm

    You might be able to also use jQuery to replace existing css setting in your code. Create properties on for your user control, and then pass settings in the classes. Then use jQuery to replace them. This however requires jQuery to be linked to your page (or within your control) and you’d have to write the CSS classes out to the jQuery code (using server controls, but you could use the literal control so there’s no excess code).

    Personally I’d go with the option of using server controls instead of straight up HTML, you’d get alot more flexibility, and then passing through the settings would be pretty straightforward, put something like this in your controls backend code:

    Private _TextBoxCssClass As String 
    Public Property TextBoxCssClass() As String 
        Get 
            Return _TextBoxCssClass 
        End Get 
        Set(ByVal value As String)  
            _TextBoxCssClass = value 
            txtBox1.CssClass = value 
            txtBox2.CssClass = value 
        End Set 
    End Property
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am interested in creating a simple web application that will take in user
I have a simple ASP.NET Web User Control. It looks like this: <%@ Control
I'm creating a comments web user control. I want to use this comments control
I am creating a web user control for showing Alert on AspxGridView Columns(Delete/Edit) click
I have simple web user control (the code I found somewhere in the web):
I'm creating a simple web application with which a user may author a message
I'm creating a web user control and want to get some html from a
I am creating Web User Controls via code (my C# code write-out markup, code-behind
I'm creating a web application on Google AppEngine where I want the user to
I am creating a web application that will have many users. Each user has

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.