468,268 Members | 1,970 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

Including 2 pages on a same page

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
Nov 17 '05 #1
1 956
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/show...d=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

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
--------------------------------
Hire top-notch developers to get your projects done right:
http://www.able-consulting.com
--------------------------------

"anson" <ae*****@cse.unsw.edu.au> wrote in message
news:cb**************************@posting.google.c om...
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

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Logical | last post: by
2 posts views Thread by Theo | last post: by
1 post views Thread by Marcin Okraszewski | last post: by
4 posts views Thread by roger janssens via DotNetMonster.com | last post: by
1 post views Thread by Martin Mücke | last post: by
10 posts views Thread by Robert Huff | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.