You must Sign In to post a response.
  • Category: ASP.NET

    Mr. Ramasamy.N thanks to u... but.........

    sir, buttion used in aspx.vb page.
    asp:buttion not display.
    this is created in string.
    u know , i used input or asp:buttion any one.
    how is get function.

    str += "<td class=border><input type=""submit"" onClick=""getfilename();"" id=""btn"" runat=""server"" value= " & (i + 1).ToString & " > </td>

    how is this function created
    protected void getfilename(object sender, EventArgs e)

    when i call function, and get query. but i am didnot work in script page.

    thank you
  • #212975
    you have create this function in server -side

  • #212979
    helo ,you r calling function from client side.
    but function body is in server side.
    u can not do like this.

  • #212984
    how is posible?

  • #212990
    use AJAX to call Server-Side function

  • #212992
    Your problem solved

    use onserverclick="getfilename" instead of OnClick="getfilename"

    and use the

    protected void getfilename(object sender, EventArgs e)

  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.