Click here to Skip to main content
15,898,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: file upload and repeater Pin
Christian Graus2-Nov-09 22:20
protectorChristian Graus2-Nov-09 22:20 
GeneralRe: file upload and repeater Pin
m@dhu2-Nov-09 23:22
m@dhu2-Nov-09 23:22 
GeneralRe: file upload and repeater Pin
Christian Graus3-Nov-09 8:38
protectorChristian Graus3-Nov-09 8:38 
GeneralRe: file upload and repeater Pin
m@dhu3-Nov-09 17:49
m@dhu3-Nov-09 17:49 
GeneralRe: file upload and repeater Pin
Christian Graus3-Nov-09 19:26
protectorChristian Graus3-Nov-09 19:26 
GeneralRe: file upload and repeater Pin
m@dhu3-Nov-09 21:23
m@dhu3-Nov-09 21:23 
QuestionCart Pin
KhandelwalA2-Nov-09 19:40
KhandelwalA2-Nov-09 19:40 
AnswerRe: Cart Pin
Christian Graus2-Nov-09 19:48
protectorChristian Graus2-Nov-09 19:48 
KhandelwalA wrote:
Dim dt As DataTable = Session("Cart")


Putting a datatable into the session seems wasteful to me.

KhandelwalA wrote:
For i As Integer = 0 To DataList1.Items.Count - 1


Does this work ? In C# it would miss the last item.

KhandelwalA wrote:
Session("Cart") = dt


Every time ? Why on earth are you doing this inside the loop ?

KhandelwalA wrote:
DataList1.DataSource = dt
DataList1.DataBind()


Wow - again, this is very wasteful.

KhandelwalA wrote:
is there any other way to do it.........


There's much better ways to do this. How about storing an id in the session and storing the cart in the database ? Then you could modify the cart with SQL, for a start.

KhandelwalA wrote:
Dim txt As Integer = CType(DataList1.Items(i).FindControl("txtQty"), TextBox).Text

KhandelwalA wrote:
Dim val As Integer = Convert.ToInt32(txt)


What are you writing this for ? Is it actually going to be used for anything ? By whom ?

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

QuestionRegular expression in ASP.Net. Pin
suravi2-Nov-09 19:12
suravi2-Nov-09 19:12 
AnswerRe: Regular expression in ASP.Net. Pin
Christian Graus2-Nov-09 19:28
protectorChristian Graus2-Nov-09 19:28 
AnswerRe: Regular expression in ASP.Net. Pin
ademsandeepreddy2-Nov-09 19:31
ademsandeepreddy2-Nov-09 19:31 
AnswerRe: Regular expression in ASP.Net. Pin
KhandelwalA2-Nov-09 19:32
KhandelwalA2-Nov-09 19:32 
QuestionHow to implement search query in asp Pin
Amit Spadez2-Nov-09 17:49
professionalAmit Spadez2-Nov-09 17:49 
AnswerRe: How to implement search query in asp Pin
sashidhar2-Nov-09 17:55
sashidhar2-Nov-09 17:55 
GeneralRe: How to implement search query in asp Pin
Amit Spadez2-Nov-09 18:02
professionalAmit Spadez2-Nov-09 18:02 
GeneralRe: How to implement search query in asp Pin
Christian Graus2-Nov-09 18:23
protectorChristian Graus2-Nov-09 18:23 
AnswerRe: How to implement search query in asp Pin
sashidhar2-Nov-09 18:12
sashidhar2-Nov-09 18:12 
QuestionAccess is denied. [modified] Pin
I'm a beginner2-Nov-09 17:48
I'm a beginner2-Nov-09 17:48 
AnswerRe: Access is denied. Pin
_Damian S_2-Nov-09 18:10
professional_Damian S_2-Nov-09 18:10 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 18:20
I'm a beginner2-Nov-09 18:20 
GeneralRe: Access is denied. Pin
Christian Graus2-Nov-09 18:24
protectorChristian Graus2-Nov-09 18:24 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 18:44
I'm a beginner2-Nov-09 18:44 
GeneralRe: Access is denied. Pin
Christian Graus2-Nov-09 18:56
protectorChristian Graus2-Nov-09 18:56 
GeneralRe: Access is denied. Pin
sashidhar2-Nov-09 19:00
sashidhar2-Nov-09 19:00 
GeneralRe: Access is denied. Pin
I'm a beginner2-Nov-09 22:08
I'm a beginner2-Nov-09 22:08 

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.