aspx file
<telerik:RadGrid runat="server" ID="radGridOtherPet" ClientSettings-EnableRowHoverStyle="true" OnItemDataBound="radGridOtherPet_ItemDataBound" ShowHeader="true" EnableEmbeddedBaseStylesheet="True" OnItemCommand="radGrid_ItemCommand"
aspx.cs file
protected void radGrid_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
Response.Redirect(CourtApplication.Constants.EditUrl + "?ApplicationId=" + CryptologyFunctions.Encrypt(e.CommandArgument.ToString()));
}
if (e.CommandName == "Select")
{
Response.Redirect(CourtApplication.Constants.ViewProfileUrl + "?ApplicationId=" + CryptologyFunctions.Encrypt(e.CommandArgument.ToString()));
}
}
No comments:
Post a Comment