newbie question

  • Thread starter Thread starter Rafael Chemtob
  • Start date Start date
R

Rafael Chemtob

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("http://" +
DAL.RetrieveData("sp_AddClick", 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

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionSte
p.Execute() +152
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64



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
 
Rafael,

We need to the code these errors originate from before this can be resolved.

Thanks,

--------------------
From: "Rafael Chemtob" <[email protected]>
Subject: newbie question
Date: Wed, 7 Dec 2005 16:48:17 -0500
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Message-ID: <ep5FIf3#[email protected]>
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: ool-18b9c56b.dyn.optonline.net 24.185.197.107
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.general:184060
X-Tomcat-NG: microsoft.public.dotnet.general

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("http://" +
DAL.RetrieveData("sp_AddClick", 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

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionSt e
p.Execute() +152
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64



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

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0
MS Sans Serif;}{\f1\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs20 Cheers,\par
\par
johnKn [MS-SDK]\par
\par
\par
\par
-Please do not send email directly to this alias. This alias is for \par
newsgroup purposes only\par
\par
-This posting is provided "AS IS" with no warranties, and confers no
rights.\par
\par
-To provide additional feedback about your community experience please send
\par
e-mail to: (e-mail address removed)\par
\f1\par
}
 
Back
Top