Type of processing model asp.net stimulates - Event - driven

Q.  Which type of processing model does asp.net stimulate?
- Published on 16 Jun 15

a. Static
b. Linear
c. Bottom­ up
d. Event­-driven

ANSWER: Event­-driven
 
Event-­driven programs respond to events. An event happens(or is raised) when something happens like when a button is pressed or something. Often, events are generated by user actions but there are some events which are system generated also.
 

    Discussion

  • Shiva   -Posted on 13 Sep 15
    ASP.NET model is event driven. In ASP HTML and your programming language code are mixed and you have to write in a single file. In ASP.NET both files are separate. In code behind file you find the events or you can write events. These events are activated by user or some other way. As example Page_Load event, this event is executed every time when the page is load or reload. Most of the controls have default server side events.
    Example:
    protected void Button1_Click(object sender, EventArgs e)
    {
    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {
    }

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)