Including 2 pages on a same page

  • Thread starter Thread starter anson
  • Start date Start date
A

anson

Dear sir,

I would like to ask if ASP.net has some functions that JSP has.
For example, JSP can "include" two JSP pages onto the same page, can
ASP do that? If yes, how?

To further bring this example into detail, I have two buttons on the
same page, but belongs to only one form. I would like some fields in
the form to be associated with the 1 particular button, and the other
fields with the others.....for example, if I press ENTER (being that
both buttons on the same page)...it is only associated with ONE
button...and ignores the other (which I want)

Does anyone know?

zeallous
 
You might want to separate your "pages" into individual user controls. It's
a good way to keep the code segregated.

You can intercept the client side enter keypress event of the text box and
then do what you want using javascript code.
Here's a good example:
http://www.kamp-hansen.dk/pages/showdoc.asp?id=28&menuid=21&menuid=18

Or you could also try using this free control.
http://www.metabuilders.com/tools/DefaultButtons.aspx

And here's a good article on the subject:
http://www.allasp.net/enterkey.aspx
 
Back
Top