locked
LinkButton javascript webform_dopostbackwithoptions linkbutton postback problem RRS feed

  • Question

  • Hi, 

    I am using asp.net LinkButton in a DataList and set a CommandName value. 

    I found out that using LinkButton "javascript webform_dopostbackwithoptions" is causing postback and disable postback with href=# does not run the code at all. 

    I like to ask is there any alternative way to replace LinkButton? I require element with CommandName because the LinkButton is together with a Repeater.

    Thank you.

    Thursday, September 15, 2016 10:57 AM

Answers

  • Hi,

    You can use asp:Button to replace the asp:LinkButton.

    As this question is more relate to ASP.NET, I suggest you post it to following Forum, you will get more help and confirmed answers from there.

    http://forums.asp.net/

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Proposed as answer by KRISHANA KUMAR Thursday, September 22, 2016 5:04 AM
    • Marked as answer by Patrick_Liang Friday, September 30, 2016 8:53 AM
    Monday, September 19, 2016 8:54 AM