Modify QueryString on PostBack to include an anchor bookmark without breaking subsequent events and

Posted by roosteronacid on Stack Overflow See other posts from Stack Overflow or by roosteronacid
Published on 2010-03-29T14:38:49Z Indexed on 2010/03/29 14:43 UTC
Read the original article Hit count: 393

Filed under:
|

Consider the following pseudo-code:

// sorts the dataset used by the table
void ClickEvent()
{
}

foreach (column in table)
{
    // create new LinkButton
    var lb = new LinkButton();

    // hook sort event
    lb.Click += ClickEvent;

    // add LinkButton to table
    table.Controls.add(lb);
}


How can I modify the QueryString to include an anchor bookmark without breaking subsequent events and without using the dreaded PostBackUrl property on the LinkButtons?

© Stack Overflow or respective owner

Related posts about html

Related posts about c#