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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:54:31+00:00 2026-06-18T02:54:31+00:00

I am a beginner. I am trying to learn ajax tab control. I have

  • 0

I am a beginner. I am trying to learn ajax tab control. I have a 3 tabs each one with a few text boxes and a submit button. The problem is when i double click on a button it takes me to source code(html) i want write code for button click even on a .cs file. How do i do that?

       <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1"   runat="server">
    </asp:ToolkitScriptManager>
         <b>Tabs Demonstration</b> <br /><br />
    <asp:TabContainer runat="server" ID="Tabs" Height="138px" ActiveTabIndex="0" 
        Width="402px">
        <asp:TabPanel runat="server" ID="Panel1" HeaderText="Address">
            <ContentTemplate>
                <asp:UpdatePanel ID="updatePanel1" runat="server">
                    <ContentTemplate>
                        <table>
                            <tr><td class="style1">First Name:</td><td class="style1"><asp:TextBox ID="txtName" runat="server" /></td></tr>
                            <tr><td>Address:</td><td><asp:TextBox ID="txtAddress" runat="server" /></td></tr>
                            <tr><td>
                                <asp:Button ID="Button1" runat="server" Text="Submit" /></td></tr>
                        </table>
                   </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </asp:TabPanel>

        <asp:TabPanel runat="server" ID="Panel3" HeaderText="Email" >
            <ContentTemplate>
                Email: <asp:TextBox ID="txtEmail" runat="server" />

            <asp:Button ID="Button2" runat="server" Text="Button" /></ContentTemplate>
        </asp:TabPanel>

        <asp:TabPanel runat="server" ID="Panel2" HeaderText="Login Details">
            <ContentTemplate>
             <table>
           <tr> <td>User Name:</td><td><asp:TextBox ID="txtUser" runat="server" /></td></tr>
           <tr> <td>Password:</td><td><asp:TextBox ID="txtPass" runat="server" /><asp:Button ID="Button3" runat="server"
                   Text="Button" /></td></tr>
            </ContentTemplate>
        </asp:TabPanel>

    </asp:TabContainer>


</form>
  • 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-18T02:54:32+00:00Added an answer on June 18, 2026 at 2:54 am

    You can do this manually to your button in .aspx page by adding OnClick=”Button1_Click”:

    <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" />
    

    then in your code-behind .aspx.cs (press F7 while in .aspx in Visual Studio) write:

    protected void Button1_Click(object sender, EventArgs e)
    {
    }
    

    or for .aspx.vb

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Button1_Click(sender, e)
    
    'Some other codes
    
    End Sub
    

    Now when the button is clicked, the code in Button1_Click gets executed.

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

Sidebar

Related Questions

One friend of mine is beginner programmer and he is trying to learn classic
I was just trying to learn the syntax of the beginner things, and how
I'm a beginner when it comes to Python and I'm trying to learn how
I am a beginner and I am trying to learn how to add, delete,
Help! I'm a beginner. I am trying to learn PostgreSQL and I am having
I have just begun to learn JS. I am trying to change the value
I am still a beginner but trying to learn so probably doing something extremely
Very beginner level question. Trying to learn JSON and having trouble with getting proper
I'm a complete beginner trying to learn Java as my first language. When I'm
I am a beginner at using mysql and I am trying to learn the

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.