DetailsView Error

  • Thread starter Thread starter Deep
  • Start date Start date
D

Deep

I am using DetailsView in my apllication the following error i am
getting .... not able to find out solution ..if anybody knows please
help me out ..


public void DetailViewError_ItemCommand(Object sender,
DetailsViewCommandEventArgs e)
{

if (e.CommandName = "Error")

{
DetailsViewRow row = DetailViewError.Rows[2];
}


if i run the application i get the following error


Compiler Error Message: CS0200: Property or indexer
'System.Web.UI.WebControls.CommandEventArgs.CommandName' cannot be
assigned to -- it is read only

Line 298: if (e.CommandName = "Show")
Line 299: {
Line 300: }
 
Back
Top