|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Object reference not set to an instance of an object.<asp:DropDownList Runat=server ID="CIdeefixeSatis" SelectedIndex='<%# SelectMyIndex(DataBinder.Eval(Container, "DataItem.ideefixesatis")) In my SelectMyIndex Function Dim ideefixesatisc As DropDownList ideefixesatisc = CType(Page.FindControl("CIdeefixeSatis"), DropDownList) There is no problem till that line but when i add ideefixesatisc.DataTextField = "Stokta Var" ideefixesatisc.SelectedIndex = ideefixesatisc.Items.IndexOf(ideefixesatisc.Items.FindByValue("True")) It returns Line 53: ideefixesatisc.DataTextField = "Stokta Yok" Object reference not set to an instance of an object. Please don't repeat messages which are still answered.
Cor Show quoteHide quote "Savas Ates" <in da club> schreef in bericht news:eLjtR4%23qGHA.3564@TK2MSFTNGP03.phx.gbl... >I have a datagrid and it has a dropdownlist which is named > > <asp:DropDownList Runat=server ID="CIdeefixeSatis" SelectedIndex='<%# > SelectMyIndex(DataBinder.Eval(Container, "DataItem.ideefixesatis")) > > In my SelectMyIndex Function > > Dim ideefixesatisc As DropDownList > > ideefixesatisc = CType(Page.FindControl("CIdeefixeSatis"), DropDownList) > > There is no problem till that line but when i add > > > > ideefixesatisc.DataTextField = "Stokta Var" > > ideefixesatisc.SelectedIndex = > ideefixesatisc.Items.IndexOf(ideefixesatisc.Items.FindByValue("True")) > > > > It returns > > Line 53: ideefixesatisc.DataTextField = "Stokta Yok" > Object reference not set to an instance of an object. > > > > >
array element isexist ?
How much disk space is needed... .Net and 32 processors Deriving from Abstract Classes with Enums and Varying Object Types Menus from a database table and addhandler System.OverflowException during IPostBackDataHandler.LoadPostData EDITITEMTEMPLATE FINDCONTROL PROBLEM Holding down keys II Error Compiling unhandled SecurityException in Visual Basic 2005 Express |
|||||||||||||||||||||||