S
Savas Ates
It is in my <EditItemTemplate> Tag..
<asp
ropDownList Runat=server ID="CIdeefixeSatis" SelectedIndex='<%#
SelectMyIndex(DataBinder.Eval(Container, "DataItem.ideefixesatis")) %>'
<asp:ListItem Value="True">Stokta Var</asp:ListItem>
<asp:ListItem Value="False">Stokta Yok</asp:ListItem>
</asp
ropDownList>
In my codebehind
Public Function SelectMyIndex(ByVal indexno As Boolean)
ideefixesatisc = CType(Datagrid1.FindControl("CIdeefixeSatis"),
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..
<asp
SelectMyIndex(DataBinder.Eval(Container, "DataItem.ideefixesatis")) %>'
<asp:ListItem Value="True">Stokta Var</asp:ListItem>
<asp:ListItem Value="False">Stokta Yok</asp:ListItem>
</asp
In my codebehind
Public Function SelectMyIndex(ByVal indexno As Boolean)
ideefixesatisc = CType(Datagrid1.FindControl("CIdeefixeSatis"),
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..