tags:

views:

25

answers:

0

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?