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,
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Jan 6, 2011, 2:16 AM
krithika muthukrishnanPosted Jan 6, 2011, 2:13 AM
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 GaradPosted Jan 6, 2011, 1:36 AM
ShankeyPosted Jan 6, 2011, 1:25 AM
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.