-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: SitaramanM
Message 9 in Discussion

Hi Balaji      
Original Code 
tempobj = 
dbManager.Execute(QueryType.StoredProcedure,ReturnType.ScalarType,"CreateUpdateDisclosures",list);
 
if(Request.QueryString["discId"] == null) 
{ 
Hashtable hashTbl = ((Hashtable)tempobj); 
Modified Code 
tempobj = 
dbManager.Execute(QueryType.StoredProcedure,ReturnType.ScalarType,"CreateUpdateDisclosures",list);
 
if (tempobj ==null) 
{ 
////Do the Error handling here and exit the function 
} 
if(Request.QueryString["discId"] == null) 
{ 
Hashtable hashTbl = ((Hashtable)tempobj);        You can do the error handling in this 
way and give the user a decent error message to the user. However,  from development 
point of view, i suggest that you set a breakpoint in VS.Net in the snippet tempobj = 
dbManager.Execute(QueryType.StoredProcedure,ReturnType.ScalarType,"CreateUpdateDisclosures",list);
  and check why the object returned is a null.     hth   regards,   sr

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to