Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 27, 2003 06:49 PM by mattb
Contributor
2333 Points
533 Posts
Aug 27, 2003 06:21 PM|LINK
protected void dlEvents_CancelCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e) { string cancelcmd = ((LinkButton)e.CommandSource).CommandName; if(cancelcmd == "canceldetails") dlEvents.SelectedIndex = -1; BindData(); }
Aug 27, 2003 06:49 PM|LINK
protected void dlEvents_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e) { string cmd = ((LinkButton)e.CommandSource).CommandName; if(cmd == "showdetails") { dlEvents.SelectedIndex = e.Item.ItemIndex; GetData(); } else if(cmd == "canceldetails") { dlEvents.SelectedIndex = -1; GetData(); } }
mattb
Contributor
2333 Points
533 Posts
DataList CancelCommand
Aug 27, 2003 06:21 PM|LINK
protected void dlEvents_CancelCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e) { string cancelcmd = ((LinkButton)e.CommandSource).CommandName; if(cancelcmd == "canceldetails") dlEvents.SelectedIndex = -1; BindData(); }Any ideas?mattb
Contributor
2333 Points
533 Posts
Re: DataList CancelCommand
Aug 27, 2003 06:49 PM|LINK
protected void dlEvents_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e) { string cmd = ((LinkButton)e.CommandSource).CommandName; if(cmd == "showdetails") { dlEvents.SelectedIndex = e.Item.ItemIndex; GetData(); } else if(cmd == "canceldetails") { dlEvents.SelectedIndex = -1; GetData(); } }