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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:13:43+00:00 2026-06-14T15:13:43+00:00

When I click on the button just nothing happens! public void cmdButton1_OnClick(object sender, EventArgs

  • 0

When I click on the button just nothing happens!

public void cmdButton1_OnClick(object sender, EventArgs e)
        {
            Panel myPanel = new Panel();
            myPanel.ID = "Panel1";

            for (int i = 0; i < numtourist; i++)
            {
                Label myLabel = new Label();
                myLabel.ID = "lblNameL" + i.ToString();
                myLabel.Text = "Трите имена на латиница ";
                TextBox myTextBox1 = new TextBox();
                myTextBox1.ID = "txtNameL" + i.ToString();
                myPanel.Controls.Add(myLabel);
                myPanel.Controls.Add(myTextBox1);

                Label mylabel2 = new Label();
                mylabel2.ID = "lblNameK" + i.ToString();
                mylabel2.Text = "Трите имена на кирилица";
                TextBox myTextBox2 = new TextBox();
                myTextBox2.ID = "txtNameK" + i.ToString();
                myPanel.Controls.Add(mylabel2);
                myPanel.Controls.Add(myTextBox2);

                Label myLabel3 = new Label();
                myLabel3.ID = "lblEGN" + i.ToString();
                myLabel3.Text = "EГН";
                TextBox myTextBox3 = new TextBox();
                myTextBox3.ID = "txtEGN" + i.ToString();
                myPanel.Controls.Add(myLabel3);
                myPanel.Controls.Add(myTextBox3);

                Label myLabel4 = new Label();
                myLabel4.ID = "lblPersonalCardNum" + i.ToString();
                myLabel4.Text = "Номер на лична карта";
                TextBox myTextBox4 = new TextBox();
                myTextBox4.ID = "txtPersonalCardNum" + i.ToString();
                myPanel.Controls.Add(myLabel4);
                myPanel.Controls.Add(myTextBox4);


                Label myLabel5 = new Label();
                myLabel5.ID = "lblDateOfIssuePC " + i.ToString();
                myLabel5.Text = "Дата на издаане на лична карта:";
                TextBox myTextBox5 = new TextBox();
                myTextBox5.ID = "txtDateOfIssuePC" + i.ToString();
                myPanel.Controls.Add(myLabel5);
                myPanel.Controls.Add(myTextBox5);

                Label myLabel6 = new Label();
                myLabel6.ID = "lblDateOfExpiryPC " + i.ToString();
                myLabel6.Text = "Дата на валидност на лична карта:";
                TextBox myTextBox6 = new TextBox();
                myTextBox6.ID = "txtDateOfExpiryPC" + i.ToString();
                myPanel.Controls.Add(myLabel6);
                myPanel.Controls.Add(myTextBox6);

                Label mylabel6_1 = new Label();
                mylabel6_1.ID = "lblIssuedFrom" + i.ToString();
                mylabel6_1.Text = "Издадеа от";
                TextBox myTextBox6_1 = new TextBox();
                myTextBox6_1.ID = "txtIssuedFrom" + i.ToString();
                myPanel.Controls.Add(mylabel6_1);
                myPanel.Controls.Add(myTextBox6_1);


                Label myLabel7 = new Label();
                myLabel7.ID = "lblDateOfIssuePass " + i.ToString();
                myLabel7.Text = "Дата на издаване на международен паспорт:";
                TextBox myTextBox7 = new TextBox();
                myTextBox7.ID = "txtDateOfIssuePass" + i.ToString();
                myPanel.Controls.Add(myLabel7);
                myPanel.Controls.Add(myTextBox7);


                Label myLabel7_1 = new Label();
                myLabel7_1.ID = "lblPassportNum" + i.ToString();
                myLabel7_1.Text = "Номер на паспорт:";
                TextBox myTextBox7_1 = new TextBox();
                myTextBox7_1.ID = "txtPassportNum" + i.ToString();
                myPanel.Controls.Add(myLabel7_1);
                myPanel.Controls.Add(myTextBox7_1);


                Label myLabel8 = new Label();
                myLabel8.ID = "lblDateOfExpiryPass " + i.ToString();
                myLabel8.Text = "Дата на валидност на международен паспорт:";
                TextBox myTextBox8 = new TextBox();
                myTextBox8.ID = "txtDateOfExpiryPass" + i.ToString();
                myPanel.Controls.Add(myLabel8);
                myPanel.Controls.Add(myTextBox8);

                Label myLabel9 = new Label();
                myLabel9.ID = "lblHomeContact" + i.ToString();
                myLabel9.Text = "Домашен телефон";
                TextBox myTextBox9 = new TextBox();
                myTextBox9.ID = "txtHomeContact" + i.ToString();
                myPanel.Controls.Add(myLabel9);
                myPanel.Controls.Add(myTextBox9);

                Label myLabel10 = new Label();
                myLabel10.ID = "lblMobContact" + i.ToString();
                myLabel10.Text = "Мобилен телефон";
                TextBox myTextBox10 = new TextBox();
                myTextBox10.ID = "txtMobContact" + i.ToString();
                myPanel.Controls.Add(myLabel10);
                myPanel.Controls.Add(myTextBox10);

                Label myLabel11 = new Label();
                myLabel11.ID = "lblEmail" + i.ToString();
                myLabel11.Text = "E-mail адрес";
                TextBox myTextBox11 = new TextBox();
                myTextBox11.ID = "txtEmail" + i.ToString();
                myPanel.Controls.Add(myLabel11);
                myPanel.Controls.Add(myTextBox11);


                Label myLabel12 = new Label();
                myLabel12.ID = "lblAddress" + i.ToString();
                mylabel2.Text = "Адрес";
                TextBox myTextBox12 = new TextBox();
                myTextBox12.ID = "txbAddress" + i.ToString();
                myPanel.Controls.Add(myLabel12);
                myPanel.Controls.Add(myTextBox12);

            }
        }
  • 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-14T15:13:43+00:00Added an answer on June 14, 2026 at 3:13 pm

    You are missing one more step. Now add your panel control to another control container or at least your page control.

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

Sidebar

Related Questions

I just cannot get this to work! Whenever I click the button nothing happens.
click the button to call this method: private void goRegister(final boolean isUsername) { new
when i click on the submit button nothing happens , am not sure what
When I click the button and the form is valid it just refreshes the
On google homepage, if you click the more button, a menu opens below just
I need a function that a user can just click a flash app button
In my app there is a button, user just click it then the latest
I have searched, but nothing happens, I just starting using C#.NET and I a
I simply just want to count the clicks of a button and save the
I made a camera layout where two buttons existed.A click button and a share

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.