HighTechTalks DotNet Forums  

newbie question

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss newbie question in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rafael Chemtob
 
Posts: n/a

Default newbie question - 12-07-2005 , 06:06 PM






hi,
i'm new to .net. i'm getting this error in my app.

Line 21: NameValueCollection nvc = new NameValueCollection();
Line 22: nvc.Add("@MerchantCouponID", merchantCouponID);
Line 23: context.Response.Redirect(DAL.RetrieveData("sp_Add Click",
nvc).Tables[0].Rows[0]["CreativeUrl"]);
Line 24:
Line 25: }
Source File: g:\CouponsTest\website\Coupons\thank_you.ashx Line: 23

Stack Trace:

IndexOutOfRangeException: There is no row at position 0.
System.Data.DataRowCollection.get_Item(Int32 index) +98
thank_you.ProcessRequest(HttpContext context) in
g:\CouponsTest\website\Coupons\thank_you.ashx:23


the error is in line 23.
i'm not really sure what the problem is? how do i find out the value of
merchantCouponID.
please help
rafael




Reply With Quote
  #2  
Old   
Ben Dewey
 
Posts: n/a

Default Re: newbie question - 12-20-2005 , 12:01 PM






did you do a test of the DAL.RetrieveData("##", nvc).Tables.Count and the
DAL.RetrieveData("##", nvc).Tables[0].Rows.Count

Check those Counts If they return zero, you have a problem with the
storedProc or the RetrieveData Function.

If not I will need to know more about your RetrieveData Function.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.