Forum Moderators: mack

Message Too Old, No Replies

aspx in a div

         

mcsilvio2

1:44 pm on Oct 11, 2007 (gmt 0)

10+ Year Member



hi all,
ive got a div and i want it load an aspx into it. i read about some "ajax" javascript for making an html load into div by clicking a link. im new so i dont know how to adapt this code to my needs. right now im using an iframe, but from what im reading, it looks like iframes arent popular. and i want to be trendy. can someone tell me how to load an aspx into a div?

many thanks,
Marco.

jtara

3:36 pm on Oct 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ASPX is server-side scripting. What the browser gets is.... HTML ... regardless of how the page happens to be named. (e.g. example.aspx vs. example.html)

There's nothing you have to do to adapt the code to work with an "ASPX" file. It should work the same for aspx scripts as it works for static HTML pages.

mcsilvio2

2:49 pm on Oct 12, 2007 (gmt 0)

10+ Year Member



thanks for the reply. but actually thats what i need to know. im sure loading an aspx file into a div is the same as loading an html. what i need to know is if there is a better way to do it than using an iframe. ive been advised to try an find an alternative to the iframe.

any ideas?
marco.