Please help, if you can!<BR><BR>I am trying to output the results of a stored procedure to a datagrid. I&#039;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>&#060;script language="vb" runat="server"&#062; <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;passwo rd=test;"<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").DefaultVi ew<BR> datagrid1.databind()<BR> end sub<BR>&#060;/script&#062;<BR><BR><BR><BR>My sqlconnection is being created properly (if I use the name of a SP that doesn&#039;t exist, I get an error about that), and I can&#039;t figure out what might be causing this problem. Thanks very much for any help!<BR><BR>Deborah<BR><BR>