Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

Listbox inside a Gridview gives a nullpointer exception


I have a gridview, and a listbox which has a different datasource. The
listbox contains distinct types of contacts, whereas the gridview will get
populated upon contact type selection.

The data is displayed but when on submission of the contact type from the
list box i get a null reference exception.

I already tried to trap using SelectedIndex -1 but that does not work..

Any pointers.

Thanks in advance

On May 30, 10:34 pm, Smita <S@discussions.microsoft.com> wrote:

> I have a gridview, and a listbox which has a different datasource. The
> listbox contains distinct types of contacts, whereas the gridview will get
> populated upon contact type selection.

> The data is displayed but when on submission of the contact type from the
> list box i get a null reference exception.

> I already tried to trap using SelectedIndex -1 but that does not work..

> Any pointers.

> Thanks in advance

Please send a piece of code where you get the exception.
Thanks!
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc