hello
I have trouble with editing listview (asp.net 3.5 server control). I want to accomplish following task. When click on edit button in my listview I want to open dialog window where I can edit user information. The dialog is standard jquery dialog.
Issue I have is when I click on edit button, the edit button fires postback. Is there a way that I can open my dialog without a postback but still to get my "CommandArgument" id through to dialog.
in my listview item template I have following
<asp:LinkButton CommandName="Edit" id="lbEditUser" CommandArgument='<%#Eval("id") %>' runat="server" >Edit</asp:LinkButton>
and in my code behind
protected void lvUsers_OnItemCommand(object sender, ListViewCommandEventArgs e)
{
if (String.Equals(e.CommandName, "Edit"))
{
var member = Member.GetMemberFromLoginName(lbEditUser.CommandArgument);
// code
}
}