i am trying to call a C# fonction or event from a JS object.
i have this
<script language="javascript" type="text/javascript">
function UpdPanelUpdate(){
__doPostBack("????","");
}
</script>
<a onmouseover="UpdPanelUpdate()"> mose over me </a>
<asp:Button ID="ClientID" runat="server" Text="Press ME" onclick="ClientID_Click1" />
i know that __doPostBack(" ",""); will cause my page to reload
my C# code looks like
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _test__doPostBack : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
public void ClientID_Click1(object sender, EventArgs e)
{
mySub();
}
public void mySub()
{
// Action here
}
}
the press event works just fine, but not the roll over