Please help, if you can!<BR><BR>I am trying to output the results of a stored procedure to a datagrid. I've tried many different configurations of code, but I always get this error:<BR><BR>System.NullReferenceException: Value null was found where an instance of an object was required.<BR><BR><BR><script language="vb" runat="server"> <BR> sub page_load(sender as object, e as eventargs)<BR> dim con as sqlconnection<BR> dim cmd as sqldataadapter <BR> dim ds as new dataset<BR> dim str as string<BR> dim sql as string<BR> dim datagrid1 as datagrid<BR><BR> str="server=myserver;database=master;uid=sa;password=te st;"<BR><BR> sql="spTest"<BR> con= new sqlconnection(str)<BR> cmd= new sqldataadapter(sql,con)<BR><BR> cmd.SelectCommand.CommandType= CommandType.StoredProcedure <BR> cmd.fill(ds,"sptest") <BR><BR> datagrid1.datasource=ds.tables("sptest").DefaultView<BR> datagrid1.databind()<BR> end sub<BR></script><BR><BR><BR><BR>My sqlconnection is being created properly (if I use the name of a SP that doesn't exist, I get an error about that), and I can't figure out what might be causing this problem. Thanks very much for any help!<BR><BR>Deborah<BR><BR>