hai,
in .net i have an error object reference not set to an instance of an object,i don't know why this error occurs, how to solve this error.
Thank u,
Object reference not set to an instance of an object how to solve this error
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

ShankeyRank #972 · 2.1K reputationPosted Jan 5, 2011, 8:25 PM EST
It will be good if you can send some details of error and code, but at first sight it looks that the you are trying to use an object which is null and something like that. your object seems to have null value.
Krishna GaradRank #191 · 12.8K reputationPosted Jan 5, 2011, 8:36 PM EST
krithika muthukrishnanRank #8,369 · 223 reputationPosted Jan 5, 2011, 9:13 PM EST
in asp.net can i able to pass the query string with in the page likewise
in first.aspx
BY Role
in first.aspx.cs
string str1
str1=Request.QueryString["str"].ToString();
//when i use like this,object referene not set to an instance of an object error will occur how can i solve this.
Thank u
Krishna GaradRank #191 · 12.8K reputationPosted Jan 5, 2011, 9:16 PM EST