Click here to Skip to main content
15,888,461 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: prevent to copy my web pge Pin
StianSandberg25-Jul-12 22:31
StianSandberg25-Jul-12 22:31 
GeneralRe: prevent to copy my web pge Pin
Elham M26-Jul-12 1:18
Elham M26-Jul-12 1:18 
AnswerRe: prevent to copy my web pge Pin
StianSandberg26-Jul-12 1:52
StianSandberg26-Jul-12 1:52 
GeneralRe: prevent to copy my web pge Pin
RamShankarMCA26-Jul-12 2:12
RamShankarMCA26-Jul-12 2:12 
GeneralRe: prevent to copy my web pge Pin
Elham M26-Jul-12 2:55
Elham M26-Jul-12 2:55 
GeneralRe: prevent to copy my web pge Pin
Pete O'Hanlon26-Jul-12 3:00
mvePete O'Hanlon26-Jul-12 3:00 
QuestionGetting "Index was out of range" error.. Pin
Diana Tsilidi24-Jul-12 9:06
Diana Tsilidi24-Jul-12 9:06 
AnswerRe: Getting "Index was out of range" error.. Pin
jkirkerx24-Jul-12 10:20
professionaljkirkerx24-Jul-12 10:20 
That's pretty slick code there, and you even knew how to access data from the EventArgs. Strange if you know how to use the eventarg, that you didn't test the value of it e.Item.ItemIndex to make sure it's a value from 0 to the max value of int32.

I don't see the purpose of passing the session value to the shopping cart instance

VB
Dim currentRowIndex As Integer = Convert.ToInt32(e.Item.ItemIndex)
Session("Product") = DataList1.DataKeys(currentRowIndex)
ShoppingCart.Instance.AddItem(DataList1.DataKeys(currentRowIndex))

AnswerRe: Getting "Index was out of range" error.. Pin
Bernhard Hiller24-Jul-12 21:51
Bernhard Hiller24-Jul-12 21:51 
GeneralRe: Getting "Index was out of range" error.. Pin
jkirkerx25-Jul-12 8:45
professionaljkirkerx25-Jul-12 8:45 
GeneralRe: Getting "Index was out of range" error.. Pin
Diana Tsilidi25-Jul-12 9:09
Diana Tsilidi25-Jul-12 9:09 
GeneralRe: Getting "Index was out of range" error.. Pin
jkirkerx26-Jul-12 9:15
professionaljkirkerx26-Jul-12 9:15 
GeneralRe: Getting "Index was out of range" error.. Pin
Diana Tsilidi26-Jul-12 19:32
Diana Tsilidi26-Jul-12 19:32 
QuestionSystem.Byte[] error Pin
Jassim Rahma23-Jul-12 21:41
Jassim Rahma23-Jul-12 21:41 
GeneralRe: System.Byte[] error Pin
Bernhard Hiller24-Jul-12 0:25
Bernhard Hiller24-Jul-12 0:25 
GeneralRe: System.Byte[] error Pin
Jassim Rahma24-Jul-12 3:22
Jassim Rahma24-Jul-12 3:22 
Questionhow to select and read data in dropdownlist? Pin
mohammad ehsan23-Jul-12 19:45
mohammad ehsan23-Jul-12 19:45 
AnswerRe: how to select and read data in dropdownlist? Pin
_Amy24-Jul-12 1:52
professional_Amy24-Jul-12 1:52 
Questionhow can i detect when user click back button in android webkit? Pin
buffering8323-Jul-12 16:29
buffering8323-Jul-12 16:29 
Questionhow to build a project Pin
Harihareshwara23-Jul-12 5:57
Harihareshwara23-Jul-12 5:57 
AnswerRe: how to build a project Pin
Richard MacCutchan23-Jul-12 7:33
mveRichard MacCutchan23-Jul-12 7:33 
AnswerRe: how to build a project Pin
AmitGajjar27-Jul-12 18:06
professionalAmitGajjar27-Jul-12 18:06 
Questioncapture image through Webcam in asp.net 4.0 C#. Pin
ranjitsahani23-Jul-12 1:33
ranjitsahani23-Jul-12 1:33 
AnswerRe: capture image through Webcam in asp.net 4.0 C#. Pin
Richard MacCutchan23-Jul-12 3:18
mveRichard MacCutchan23-Jul-12 3:18 
AnswerRe: capture image through Webcam in asp.net 4.0 C#. Pin
Sandeep Mewara23-Jul-12 3:28
mveSandeep Mewara23-Jul-12 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.