It is in my <EditItemTempla teTag..
<asp:DropDownLi st Runat=server ID="CIdeefixeSa tis" SelectedIndex=' <%#
SelectMyIndex(D ataBinder.Eval( Container, "DataItem.ideef ixesatis")) %>'
>
<asp:ListItem Value="True">St okta Var</asp:ListItem>
<asp:ListItem Value="False">S tokta Yok</asp:ListItem>
</asp:DropDownLis t>
In my codebehind
Public Function SelectMyIndex(B yVal indexno As Boolean)
ideefixesatisc = CType(Page.Find Control("CIdeef ixeSatis"),
DropDownList)
Response.Write( ideefixesatisc)
End Function
There is no problem with that code..
However When i try to reach
ideefixesatisc. (properties of ideefixesatisc object for example
ideefixesatisc. DataTextField = "OK" )
It returns
Object reference not set to an instance of an object.
ideefixesatisc. DataTextField = "OK"
What can be the problem. . Any idea will be appreciated..
Comment