Client server question

G

gsalbertson

am new to asp.net and have a question on just what is processing on the
server and what is processing on the client. I have an asp.net page with
html controls on it, say a couple of text boxes and a button. The user
enters a number in one textbox, then the code behind does stuff -- let's say
it validates the number, adds the number to 100, then displays the new
number in the 2nd textbox. Once the user hits the button, isn't the
validation and calculation processing being done on the server, or is that
the client? Because if the server is really really really slow, and it is
still processing calcuations, the client isn't prevented from doing other
keystores, correct?

thanks.
 
B

bruce barker \(sqlwork.com\)

the browser works with a async request/response model.

say the user naivates to your page, enters data then clicks a button. here
is what happens.

1) the user type urls
- browser send get request and wiats for response
- the asp code run and builds an html page and send to browser.
- the browser render the page
2) the user fills in data and clicks button
- the browser posts the from data to the server and waits for response
- the asp code runs, processes the click , validates and build a new html
page and send to browser
- the browser render the new page.

if a user types data between the click (postback) and before the render,
then they are lost becuase they updated the old page which is replaced by
the new page.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top