List Info

Thread: Object not created error




Object not created error
country flaguser name
United States
2007-08-27 22:57:28
Hello everybody. Lately I had some problems with error
Object Not
instantiated in the page when I used
Request.QueryString["var"] in the
load event, without this "var" querysting variable
to be present in
the url. I try different methods to check if object is
existed first
before accessing it. So far the only fix is to put in the
try
statement like this
try
{
If
(Request.QueryString["var"]=="myvar")
{
//do something
}
catch(Exceptioin ex)
{

}
Dose anyone now how to avoid this exception ? Your help will
be
greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Object not created error
country flaguser name
United States
2007-08-31 08:45:21
Check to see if it's null first...

if(Request.QueryString["var"] != null)
{
    if(Request.QueryString["var"] ==
"myvar")
    {

    }
}

On Aug 27, 10:57 pm, "aleksandr.fis...gmail.com"
<aleksandr.fis...gmail.com> wrote:
> Hello everybody. Lately I had some problems with error
Object Not
> instantiated in the page when I used
Request.QueryString["var"] in the
> load event, without this "var" querysting
variable to be present in
> the url. I try different methods to check if object is
existed first
> before accessing it. So far the only fix is to put in
the try
> statement like this
> try
> {
> If
(Request.QueryString["var"]=="myvar")
> {
> //do something}
>
> catch(Exceptioin ex)
> {
>
> }
>
> Dose anyone now how to avoid this exception ? Your help
will be
> greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Object not created error
country flaguser name
United States
2007-09-04 14:39:19
hi, guy,

Request.QueryString["var"] is an object which is
not instantiated
without "var" querystring variable to be present
in the url.

Try this test:

if (Request.QueryString["var"] != null &&
(string)Request.QueryString["var"] ==
"myvar")
{
        // do something
}

On 8月28日, 上午11时57分, "aleksandr.fis...gmail.com"
<aleksandr.fis...gmail.com> wrote:
> Hello everybody. Lately I had some problems with error
Object Not
> instantiated in the page when I used
Request.QueryString["var"] in the
> load event, without this "var" querysting
variable to be present in
> the url. I try different methods to check if object is
existed first
> before accessing it. So far the only fix is to put in
the try
> statement like this
> try
> {
> If
(Request.QueryString["var"]=="myvar")
> {
> //do something}
>
> catch(Exceptioin ex)
> {
>
> }
>
> Dose anyone now how to avoid this exception ? Your help
will be
> greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Object not created error
user name
2007-08-30 07:40:02
hi aleksandr,
 &nbsp;   ; &nbsp;  decalre this into glob.asax&nbsp; as null
&nbsp; &nbsp;   ;  Request.QueryString[&quot;var&quot;]==null;
 &nbsp;   ; &nbsp;  in application start event.

&nbsp;
On 8/28/07, aleksandr.fishergmail.com">aleksandr.fishergmail.com < aleksandr.fishergmail.com">aleksandr.fishergmail.com > wrote:

Hello everybody. Lately I had some problems with error Object Not
instantiated in the page when I used Request.QueryString["var&quot;] in the
load event, without this "var&quot; querysting variable to be present in
the url. I try different methods to check if object is existed first
before accessing it. So far the only fix is to put in the try
statement like this
try
{
If (Request.QueryString["var&quot;]==&quot;myvar&quot;)
{
//do something
}
catch(Exceptioin ex)
{

}
Dose anyone now how to avoid this exception ? Your help will be
greatly appreciated.



Dhruv Technology Solutions
Software Engineer
+919844117527
Manoj k
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ASP.Net Community&quot; group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---

package and deployment
country flaguser name
United States
2007-09-19 08:39:31
HI all , im using Visual studio 2003 is there any Articles
anywhere that 
Explain How to use package and  Deployment so i can package
my Solutions 
to Distribute to other Machines ??    thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: package and deployment
country flaguser name
United States
2007-09-23 23:01:09
google it

On 9月19日, 下午9时39分, Brian E Boothe <subr...mtcnet.net> wrote:
> HI all , im using Visual studio 2003 is there any
Articles anywhere that
> Explain How to use package and  Deployment so i can
package my Solutions
> to Distribute to other Machines ??    thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )