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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:50:34+00:00 2026-05-23T03:50:34+00:00

void GenerateSurvey(string AnketId, System.Web.UI.WebControls.PlaceHolder plch) { var db = new Xrm.XrmDataContext(Microsoft.Xrm.Client.CrmConnection.Parse(Utils.getXrmConnectionString(_PortalBrandHelper.BrandProxy.BrandDedicatedCrmOrgName))); var AnketSoru =

  • 0
void GenerateSurvey(string AnketId, System.Web.UI.WebControls.PlaceHolder plch)
{
    var db = new Xrm.XrmDataContext(Microsoft.Xrm.Client.CrmConnection.Parse(Utils.getXrmConnectionString(_PortalBrandHelper.BrandProxy.BrandDedicatedCrmOrgName)));

    var AnketSoru = from p in db.new_survey_questions
                    orderby p.new_rank
                    select new { p.new_survey_questionid, p.new_question_text, p.new_question_type, p.new_rank, p.new_min_enumerator, p.new_max_enumerator };


    HtmlTable tbl = new HtmlTable();
    tbl.CellPadding = 2;
    tbl.CellSpacing = 3;

    HtmlTableRow r = new HtmlTableRow();
    HtmlTableCell c = new HtmlTableCell();
    c.InnerHtml = "<h3>İMMİB</h3>";
    c.ColSpan = 2;
    c.Align = "center";
    r.Cells.Add(c);
    tbl.Border = 1;

    tbl.ID = "Survey_Inner";
    tbl.Rows.Add(r);
    c = new HtmlTableCell();
    r = new HtmlTableRow();
    c.ColSpan = 2;
    c.InnerHtml = "<h4>EĞİTİM DEĞERLENDİRME FORMU</h4>";
    c.Align = "center";
    r.Cells.Add(c);
    tbl.Rows.Add(r);
    foreach (var item in AnketSoru)
    {
         r = new HtmlTableRow();
         c = new HtmlTableCell();
        c.InnerHtml = item.new_question_text.ToString();
        r.Cells.Add(c);

        switch (item.new_question_type.ToString())
        {
            case "2": //FreeText
                c = new HtmlTableCell();
                TxtFreeText = new TextBox();
                TxtFreeText.ID = "Txt_" + item.new_survey_questionid.ToString();
                TxtFreeText.TextMode = TextBoxMode.MultiLine;
                TxtFreeText.Width = 300;
                TxtFreeText.Height = 50;
                TxtFreeText.EnableViewState = true;
                c.Controls.Add(TxtFreeText);
                break;

            case "3": //CheckBox
                c.ColSpan = 2;

                var choises = from c1 in db.new_survey_question_choices
                              where c1.new_survey_questionid == item.new_survey_questionid
                              select c1;

                ChkSecimler = new CheckBoxList();
                ChkSecimler.ID = "Chkl_" + item.new_survey_questionid.ToString();
                ChkSecimler.RepeatDirection = RepeatDirection.Horizontal;
                ChkSecimler.RepeatColumns = 2;
                foreach (var ck in choises)
                {
                    LiSecim = new ListItem();
                    LiSecim.Text = ck.new_name;
                    ChkSecimler.Items.Add(LiSecim);
                }

                c.Controls.Add(ChkSecimler);
                break;

            case "4": //Enumeration ***RadioButton***
                c = new HtmlTableCell();
                RdSecimler = new RadioButtonList();
                RdSecimler.ID = "Rdl_" + item.new_survey_questionid.ToString();
                RdSecimler.RepeatDirection = RepeatDirection.Horizontal;
                c.Align = "center";


                for (int i = Convert.ToInt32(item.new_min_enumerator); i <= Convert.ToInt32(item.new_max_enumerator); i++)
                {
                    LiSecim = new ListItem();
                    LiSecim.Text = i.ToString();
                    RdSecimler.Items.Add(LiSecim);

                }
                c.Controls.Add(RdSecimler);
                break;

            default:
                break;

        }

        r.Cells.Add(c);

        tbl.Rows.Add(r);

    }

    plch.Controls.Add(tbl);

}

I want to make that radiobuttons fit in that cell not centered but couldnt able to do it, how can i do it any help?

Screenshot

  • 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-23T03:50:35+00:00Added an answer on May 23, 2026 at 3:50 am

    Simply add Attributes

    HtmlTable tbl = new HtmlTable();
    tbl.Attributes.Add("class","ClassName");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

void getThisAlert(String Title, Displayable txtagency2) { Alert error = new Alert(, Title, null, AlertType.INFO);
void SomeClass::mySlot(MyClass *var){ ... } void SomeClass::SomeFunction(){ MyClass *myVar; QPushButton *button = new QPushButton(this);
void BinaryTree::InitializeFromFile(string Filename){ ifstream inFile; treenode* Freq[256]; inFile.open(Filename.c_str(), fstream::binary); if(inFile.fail()){ cout<<Error in opening file
void someCode() { char memory[sizeof(Foo)]; void* place = memory; Foo* f = new(place) Foo();
void permute(string elems, int mid, int end) { static int count; if (mid ==
void MainWindow::addRadioToUI() { int button_cunter=4; while(!database.isEmpty()) { button_cunter++; QPushButton *one = new QPushButton(Play: +name(get_r.getTrackId()));
void FooThrow() throw(string, string) { } I have compiled the above code in g++
void trim(string &str) { string::iterator it = str.begin(); string::iterator end = str.end() - 1;
void weight_data::rev_seq(string &seq){ //TODO std::reverse(seq.begin(), seq.end()); } In this C++ method, I think this
void (int a[]) { a[5] = 3; // this is wrong? } Can I

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.