views:

88

answers:

0

Here's my situation.

  1. I have a div on my home page that I use to do a Html.RenderPartial(PartialView).

  2. Initially PartialView1 is rendered in this div properly and I can access javascript in the PartialView1.ascx file. So far so good.

  3. I also have an Ajax.ActionLink that has the InsertionMode=InsertionMode.Replace.

  4. When the Ajax.ActionLink is selected PartialView2 is rendered in the same div on the home page, as expected.

  5. What is not expected is that I can't access JavaScript in PartialView2.ascx file.