Thanks djr,
I did a bit of digging around in IIS 6 and I found that if I update the version of ASP.NET to the latest one (4.0.30319 in my case), the page starts working.
I originally wanted to ask a question about how postback works on ASPX pages, but I needed to make the page accessable on a public server first. That obviously didn't work at first, but now that it is working (and others can visit it and see the problem for themselves), I'd like to ask my original question:
If you click on the "contact" link, you be taken to a form that you can fill out. You can go ahead fill it out and click submit. An email will be sent to me.
What I'd like you to notice is that when you click submit, the entire window gets taken over by the page in the div below the menu. This must have something to do with the way postback works on aspx pages.
You should note that the way I linking the aspx page into the bottom div (Where the form shows up) is through some jquery. I have this on home.html:
Code:
...
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js">
</script>
...
<script type="text/javascript">
...
function loadContent(elementSelector, sourceURL)
{
$(elementSelector).load(sourceURL);
}
</script>
...
<div id="contact" class="menu"
onmouseover="italicize('contact'); return false;"
onmouseout="unitalicize('contact'); return false;">
<a href="javascript:loadContent('#content', 'contact.aspx');">
Contact
</a>
</div>
So when you click the "contact" link, the loadContent javascript function gets called, which loads contact.aspx into the "content" div.
How can I program it so that the refresh of contact.aspx at postback does not take over the entire browser window and instead stays confined to the div it was originally in?
Bookmarks