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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:36:41+00:00 2026-06-13T04:36:41+00:00

Sorry. This may be very simple for you… I have a Button in my

  • 0

Sorry. This may be very simple for you…

I have a Button in my Web Form. In the Browser, I opened the Fire Bug and saw the following HTML corresponding to the Button

<input type="submit" id="btn" value="Upload" name="btn">

Following is my Button HTML at server side…

<asp:Button ID="btn" runat="server" Text="Upload" OnClick="ButtonClick" /> 

So When the user hits the button, which is right now at the client side, invokes the Server side handler of the button.

My Question is how is this mapping being done internally, I meant, user is hitting the button at client side and this is executing the code at server side? Because button is no more available at server. Page is downloaded and now it is at Client side. right?

In windows Form application, this is very simple to understand this concept as the Button Event and handler are both lying in the same file and there is no Client-Server concept.

  • 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-13T04:36:42+00:00Added an answer on June 13, 2026 at 4:36 am

    Everything is bound up in the page’s ViewState, which is passed as an argument during the PostBack. So in effect, the button continues to “live” and various arguments are passed along with it. If you look at the source of your generated page, you’ll see a __doPostBack JavaScript call which handles the actual event that is occurring. This is sent in the form of an http POST request, and the ViewState provides any “stateful” information to the page’s server-side code.

    There is a lot more going on here, and I recommend you research the Asp.Net Page Lifecycle to understand it more thoroughly.

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

Sidebar

Related Questions

This may be very simple question, sorry about my lack of knwoledge, and my
Sorry i'm new to .net and learning so this may be very simple. I
Sorry in advance if I have some of this wrong. I may edit to
I know this may be a very basic question, sorry if it is but
Sorry if this question may be simple, but I can't seem to find an
Sorry, this may or may not be a programming question directly, but I am
Before I start this may be hard for some people to understand. Sorry. I
Sorry this is not a very well defined question, I am thinking about an
sorry this is such a simple question but I can't figure it out. How
Sorry for this simple question, but I can't solve it... There is an example:

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.