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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:42:28+00:00 2026-06-16T01:42:28+00:00

Having a list of all SQL database-tables and their columns-names, each in List<string> Via

  • 0

Having a list of all SQL database-tables and their columns-names, each in List<string>

Via a dropDown list control I already chose a table and the columns it has,
then after the first stage, where I have chosen the table and it’s columns
I am navigating to a page that’s has a Graphical User interface like in this screenshot:

enter image description here

It will then as you could see in the picture, render an html table , with chosen columns as the htmlTable headers .

So now when result is displayed in that aspx page,

By using Jquery, I have managed to implement a test-tool.

This enables me to apply some style setting via Graphical User interface – on that table, and for now its just headers fonts-names , headers background-color and the columns width :

headers fonts .

fonts are being chosen by an AJAX ToolKit autoComplete Extender targeting a dedicated asp:TextBox with fonts names as its dataSource

So on textchange event – jQuery is binding selected value…accordingly for a preview .

Same for background

By using a jQuery color picker, which with it’s event handler is doing the job of applying the selected color as the <tr> bgcolor …etc ‘

Now that I have all chosen css values i need to use those for a webSite application

What is the simplest way to achieve this goal ?

I could think of generating it through a File.WriteAllText ,

So that way result will be a new File created with text generated text is a head section of .aspx webform page (auto generated via String.Format)

string formatedStyleStr = string.Format(" <style Type=\"text/css\"> #{0} { \r\twidth: {1};", ID values of jQuery's job);

That’s the idea …

As the new file name will be default with an extension .aspx…

Then write into it programmatically formatted string as you would manually write it

When usually starting a new empty website application.

So instead of using new form , you will “add an existing item “…

or other options I could do to achieve this result. i did not yet decide how to …

only that i need it to hold these values that was selected ,

so as you will open this file to work on it via visual studio, you will have a kind of a template to start with (the initial style is created by the UI in the picture)

what approach is the one I should use ?

as i don’t have enough experience in that field ….I wanted to ask
did anyone think of it already …and figured some ways to implement it.

  • 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-06-16T01:42:29+00:00Added an answer on June 16, 2026 at 1:42 am

    try this

    ASPX

    <style type="text/css" runat="server" id="AutogeneratedStyle"></style>
    

    This will create a field – type HtmlGenericControl within the current page.

    C# Code Behind

    then just assign the literal CSS definition like this:

    var generatedStyle= string.Format(
    
                       "-->#idOfElement here<---
                          {
                              background-color:{0};
                          }", someVariables);
    
    AutogeneratedStyle.InnerHtml = generatedStyle;
    

    hope it will help you gettng started

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

Sidebar

Related Questions

Having inherited a legacy Sql server database, I'd like to list by table all
I need to list all filenames which is having alien.digits digits can be anytime
I am having list of char array by that I want to store all
Having a list of data object and something visual to represent each, where would
Im having a list of student names in a table , in the same
I'm having a dropdown list in my web page. And it contains two lists.
Here i am having a unordered list displaying two columns code and name .I
I've recently added a couple of fields to some tables in my database (SQL
I'm having an embedded device which keeps a list of inner tables. I would
Using Entity Designer in VS2010 to build a database for SQL Server 2005. Having

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.