Hi Friends,
I have a FormView with EditItemTemplat e with "Update & cancel " Link & ItemTemplate with "Edit" Link.
When i run the application the ItemTemplate will be running But When i click on the Edit Link The DropDownList is the EditItemTemplat e is throughing the Null Execption , in this line of Code
"DropDownList ddl = (DropDownList) FormView1.FindC ontrol("DropDow nList1"); "
The ddl is null,
But When i set the FormView Defultmode in the aspx page ie.
"<FormView id="FormView1" DefaultMode="Ed it" ...>"
Then the "ddl" will not be null and the data is Binded , But the starting page will be "EditItemTempla te" But i want to "ItemTempla te" as starting page.
And when i click on the "Update" Link the error is "Id" is read Only, And the services we are getting the "Id" is read only only set; on get; .
Is there any other way to slove this problem with out making the I "Id" as get;.
Thanks with regards
Anil s g
I have a FormView with EditItemTemplat e with "Update & cancel " Link & ItemTemplate with "Edit" Link.
When i run the application the ItemTemplate will be running But When i click on the Edit Link The DropDownList is the EditItemTemplat e is throughing the Null Execption , in this line of Code
"DropDownList ddl = (DropDownList) FormView1.FindC ontrol("DropDow nList1"); "
The ddl is null,
But When i set the FormView Defultmode in the aspx page ie.
"<FormView id="FormView1" DefaultMode="Ed it" ...>"
Then the "ddl" will not be null and the data is Binded , But the starting page will be "EditItemTempla te" But i want to "ItemTempla te" as starting page.
And when i click on the "Update" Link the error is "Id" is read Only, And the services we are getting the "Id" is read only only set; on get; .
Is there any other way to slove this problem with out making the I "Id" as get;.
Thanks with regards
Anil s g
Comment