Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP beginner - Purpose of the Response page ?

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hi ASP pros -

I have an input form (html) that uses the POST method to present the Response page (.ASP)

Is the Response page essentially just a kind of confirmation screen, giving the user a chance to review the data and return to the input form if they need to make a correction ?

I need to write the user's data into a database. Do I still need the .ASP page as the middle step ?

Thanks, John
 
The ASP (Active Server Pages) page is where your processing would take place, including posting to a database. ASP combines scripting and static HTML to create dynamic pages and/or back-end processing.

 
You don't have to have a response page if you don't want it. I generally do give the user a chance to verify their data by displaying what they have entered before they do the final submit. Then I do display a page saying that the submission went. Gives the user a visual clue that they are done and they're not left wondering "did it go through?". Also helps if the page "breaks", that way if they don't get the confirmation page they know to alert you.

hth
mark
 
When working with .asp, you generally have a lot of variables in your pages...at least with a fully functional dynamic site which is one of the points of .asp. If you are constantly switching between writing client side code and server side code in your file, it actually slows the server down a little...which, especially on a high-load server, is bad. Performance and Response of a server is very important. Therefore, if you are using a lot of variables, and other such requested items, depending on how much you have, you can speed your page load time anywhere from 5% up to 30% faster by having it all processed in server-side code and sent at once.

That is one reason why you would use the Response.write

Enableing Buffering can help speed up your pages a bit too, even though it is often considered to have less response because everything is processed first before sent to the client.

Hope that helps... -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top