Click here to Skip to main content
15,922,015 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Applying a Theme to the Master page. Pin
Abhijit Jana24-Jul-09 2:12
professionalAbhijit Jana24-Jul-09 2:12 
GeneralRe: Applying a Theme to the Master page. Pin
anada888624-Jul-09 2:18
anada888624-Jul-09 2:18 
AnswerRe: Applying a Theme to the Master page. Pin
Zafar A khan 24-Jul-09 2:13
professionalZafar A khan 24-Jul-09 2:13 
GeneralRe: Applying a Theme to the Master page. Pin
anada888624-Jul-09 2:25
anada888624-Jul-09 2:25 
AnswerRe: Applying a Theme to the Master page. Pin
Abhijit Jana24-Jul-09 2:02
professionalAbhijit Jana24-Jul-09 2:02 
GeneralRe: Applying a Theme to the Master page. Pin
anada888624-Jul-09 2:10
anada888624-Jul-09 2:10 
GeneralRe: Applying a Theme to the Master page. Pin
Abhijit Jana24-Jul-09 2:34
professionalAbhijit Jana24-Jul-09 2:34 
QuestionCookies Pin
KhandelwalA24-Jul-09 0:58
KhandelwalA24-Jul-09 0:58 
Hiiiiiii.....I m developing a Shopping Cart and for creation of cart i m using data table with session. i have wrote this code on my home page.

On PAGE Load EVENT

If Not IsPostBack Then
   makeCart()
End If


Sub makeCart()
        Dim objDT As System.Data.DataTable
        Dim objDR As System.Data.DataRow
        objDT = New System.Data.DataTable("Cart")
        objDT.Columns.Add("ID", GetType(Integer))
        objDT.Columns("ID").AutoIncrement = True
        objDT.Columns("ID").AutoIncrementSeed = 10000
        objDT.Columns.Add("ProductID", GetType(Integer))
        objDT.Columns.Add("ProductName", GetType(String))
        objDT.Columns.Add("ProductQty", GetType(Integer))
        objDT.Columns.Add("ProductPrice", GetType(Decimal))
        objDT.Columns.Add("ProductImage1", GetType(String))
        objDT.Columns.Add("ProductDescription", GetType(String))
        objDT.Columns.Add("ProductManufacturer", GetType(String))
        Session("Cart") = objDT
End Sub




the Problem i m facing is that whenver user comes to home page after adding products to cart....it becomes empty.....the reason behind this is that the code i have written on load event of home page .......and if i checks for existence of session then it got saved permanently....means it didnt clear the cart data table....what to do in this condition........and how to use cookies in this case.......plz guide me a bit Smile | :)
AnswerRe: Cookies Pin
Abhijit Jana24-Jul-09 1:08
professionalAbhijit Jana24-Jul-09 1:08 
AnswerRe: Cookies Pin
DoctorMick24-Jul-09 1:08
DoctorMick24-Jul-09 1:08 
QuestionMSChart Control with ODBC connection in asp.net.... Pin
solo_gaurav23-Jul-09 23:26
solo_gaurav23-Jul-09 23:26 
QuestionWeb service with bulk processing Pin
Kate2823-Jul-09 22:52
Kate2823-Jul-09 22:52 
AnswerRe: Web service with bulk processing Pin
Baran M24-Jul-09 0:00
Baran M24-Jul-09 0:00 
GeneralRe: Web service with bulk processing Pin
Kate2824-Jul-09 0:37
Kate2824-Jul-09 0:37 
AnswerRe: Web service with bulk processing Pin
Abhijit Jana24-Jul-09 0:06
professionalAbhijit Jana24-Jul-09 0:06 
GeneralRe: Web service with bulk processing Pin
Kate2824-Jul-09 0:39
Kate2824-Jul-09 0:39 
QuestionOnkeydown event in javascript not working in firefox3.0 Pin
megivimal23-Jul-09 22:13
megivimal23-Jul-09 22:13 
AnswerRe: Onkeydown event in javascript not working in firefox3.0 Pin
Greg Chelstowski24-Jul-09 0:46
Greg Chelstowski24-Jul-09 0:46 
Questionstring subdivide and show in another page or single page format..., Pin
Member 387988123-Jul-09 21:26
Member 387988123-Jul-09 21:26 
AnswerRe: string subdivide and show in another page or single page format..., Pin
Christian Graus23-Jul-09 21:30
protectorChristian Graus23-Jul-09 21:30 
AnswerRe: string subdivide and show in another page or single page format..., Pin
Abhishek Sur23-Jul-09 21:32
professionalAbhishek Sur23-Jul-09 21:32 
GeneralRe: string subdivide and show in another page or single page format..., Pin
Member 387988123-Jul-09 22:42
Member 387988123-Jul-09 22:42 
Question[Message Deleted] Pin
Zafar A khan 23-Jul-09 20:25
professionalZafar A khan 23-Jul-09 20:25 
AnswerRe: Outlook 2003 addin not working in outlook 2007 Pin
Abhijit Jana23-Jul-09 20:31
professionalAbhijit Jana23-Jul-09 20:31 
QuestionHow to get Free WebServices to Send SMS in ASP.net Pin
ChandrakanthGaddam23-Jul-09 20:13
ChandrakanthGaddam23-Jul-09 20:13 

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.