DetailsView Error

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: }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top