I’m working with one controller and one view. In my controller i am using a renderPartial function to render my “search” view. In my “search” view i have a respective script (using registerScript function) that works for search data with ajax. But the javascript code does not appear in the source code (browser). If i create another view and call the function renderPartial inside this view and point to the “search” view, the javascript code appears. Someone know why i can’t see my javascript code (and the function doens’t work) when i’m using the function renderPartial inside the controller and the registerScript in the view?