javascript __doPostBack doesn't seem to work for me...

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-04-16T12:18:17Z Indexed on 2010/04/16 12:33 UTC
Read the original article Hit count: 224

Filed under:
|
|

I use yui datatable in my asp.net application... I have a link button in one of my columns and it works fine but doesn't do a postback of a hidden button...

 myDataTable.subscribe("linkClickEvent", function(oArgs) {
            javascript: __doPostBack('ctl00_ContentPlaceHolder1_Button1', '');
            YAHOO.util.Event.stopEvent(oArgs.event);
        });

and in my page

<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button"
   style="display:none;" />

 protected void Button1_Click(object sender, EventArgs e)
 {
    DownloadFile(Hfhref.Value, true);
 }

I used break point but it doesn't seem to get the __dopostback.. Any suggestion...

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript