I wrote code that works correctly for a single page, when a linkbutton is hovered over it causes javascript code to execute from a document ready, that causes a popup to show.
BUT when another linkbutton is clicked, causing a postback and then a C#linkbutton_click function to execute, the javascript functions no longer triggers!
<script type="text/javascript">
$(document).ready(function (e) {....
$('.cssclassname').hover(function (e) {
call webservice here
cause popup to show
)};
});
</script>
in C# codebehind:
pageload()[
...set display of page and add original set of LinkButtons(added programatically)
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
(built programatically)
}
when the linkbutton is hovered over, you can see the javascript function call displayed in
the lower left corner of the browser, but no popup or actual execution of javascript occurs
after LinkButton1_Click has executed!
how can this be fixed or how can i troubleshoot?
NOTE: using
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_pageLoaded(PageLoadedEventHandler);
function PageLoadedEventHandler() {<pre><pre lang="c#">
INSTEAD of document ready, the javascript now 'fires', but ajax still doesn't call
web service!