I'm converting an old 1.1 web application to use the new .Net framework. As part of that convertion I've ran into an error which I don't get how to solve. We have some hidden html buttons that we used the GetPostBackClientEvent handler to cause a postback
in the server side from an html page. However that no longer works. Can someone show me how to get the new method to work instead.
On the html page we have:
function PostBackOnMainPage(){
<%=Page.GetPostBackEventReference(btnUpdatePostBack)%>
}
frost
Member
19 Points
112 Posts
GetPostBackClientEvent obsolete
Apr 29, 2009 07:41 PM|LINK
Hi,
I'm converting an old 1.1 web application to use the new .Net framework. As part of that convertion I've ran into an error which I don't get how to solve. We have some hidden html buttons that we used the GetPostBackClientEvent handler to cause a postback in the server side from an html page. However that no longer works. Can someone show me how to get the new method to work instead.
On the html page we have:
function PostBackOnMainPage(){
<%=Page.GetPostBackEventReference(btnUpdatePostBack)%>
}
Button that fires:
<asp:button id="btnATVUpdatePostBack" onclick="btnATVUpdatePostBack_Click" runat="server" Visible="false" CausesValidation="False">
The new method is ClientScript.GetPostBackClientEvent but I've tried that and it doesnt' work. What am I doing wrong?
thanks