Click here to Skip to main content
15,890,123 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: maximum number of web applications in XP SP2 Pin
Abhijit Jana24-Aug-08 18:21
professionalAbhijit Jana24-Aug-08 18:21 
GeneralRe: maximum number of web applications in XP SP2 Pin
Member 78161024-Aug-08 19:39
Member 78161024-Aug-08 19:39 
QuestionMembership profile and roles quite slow Pin
VSpike24-Aug-08 13:27
VSpike24-Aug-08 13:27 
QuestionHow to develop a customised client-server application for voip usage? Pin
AnoopSingh24-Aug-08 7:11
AnoopSingh24-Aug-08 7:11 
AnswerRe: How to develop a customised client-server application for voip usage? Pin
Paul Conrad24-Aug-08 8:20
professionalPaul Conrad24-Aug-08 8:20 
GeneralRe: How to develop a customised client-server application for voip usage? Pin
AnoopSingh24-Aug-08 19:12
AnoopSingh24-Aug-08 19:12 
Questionloop for store Id in a list Pin
strawberrysh24-Aug-08 4:53
strawberrysh24-Aug-08 4:53 
AnswerRe: loop for store Id in a list Pin
Ryomin24-Aug-08 6:54
professionalRyomin24-Aug-08 6:54 
You could store the data in an arraylist and store that arraylist in the ViewState similar to:

public ArrayList GetProductList
{
  if(ViewState["ProductList"]==null)
  {
     ViewState["ProductList"] = new ArrayList();
  }
  return (ArrayList)ViewState["ProductList"];
}

public void AddProduct(int productId)
{
  if(ViewState["ProductList"]==null)
  {
    ViewState["ProductList"] = new ArrayList();
  }

  ((ArrayList)ViewState["ProductList"]).Add(productId);
}


Then when you want to add something to your product list you can call it using
AddProduct(productId);


And you can cycle through your ArrayList:
foreach(int productId in GetProductList().Items)
{
  //execute code for productId
}


I'm not at my workstation at the moment, but this should help you get started on your problem.

Best of luck!!! Smile | :)

Cheers

Disgyza
Programmer Analyst

GeneralRe: loop for store Id in a list Pin
strawberrysh24-Aug-08 7:34
strawberrysh24-Aug-08 7:34 
GeneralRe: loop for store Id in a list Pin
MidwestLimey25-Aug-08 12:04
professionalMidwestLimey25-Aug-08 12:04 
QuestionVirtual directory creation problem Pin
reogeo200824-Aug-08 2:26
reogeo200824-Aug-08 2:26 
AnswerRe: Virtual directory creation problem Pin
Vimalsoft(Pty) Ltd24-Aug-08 3:33
professionalVimalsoft(Pty) Ltd24-Aug-08 3:33 
QuestionPassing Varible to Crystal report from the ASP page Pin
kimo code24-Aug-08 0:24
kimo code24-Aug-08 0:24 
AnswerRe: Passing Varible to Crystal report from the ASP page Pin
Blue_Boy24-Aug-08 4:46
Blue_Boy24-Aug-08 4:46 
QuestionCustome Control Problem Pin
Muhammad Gouda24-Aug-08 0:08
Muhammad Gouda24-Aug-08 0:08 
AnswerRe: Custome Control Problem Pin
Abhijit Jana24-Aug-08 0:35
professionalAbhijit Jana24-Aug-08 0:35 
GeneralCustome Control cannot be obtained from Generic Class Pin
Muhammad Gouda24-Aug-08 0:37
Muhammad Gouda24-Aug-08 0:37 
GeneralRe: Custome Control cannot be obtained from Generic Class Pin
Abhijit Jana24-Aug-08 1:12
professionalAbhijit Jana24-Aug-08 1:12 
GeneralRe: Custome Control cannot be obtained from Generic Class Pin
N a v a n e e t h24-Aug-08 6:34
N a v a n e e t h24-Aug-08 6:34 
AnswerRe: Custome Control Problem Pin
N a v a n e e t h24-Aug-08 6:31
N a v a n e e t h24-Aug-08 6:31 
GeneralRe: Custome Control Problem Pin
Abhijit Jana24-Aug-08 18:13
professionalAbhijit Jana24-Aug-08 18:13 
GeneralRe: Custome Control Problem Pin
N a v a n e e t h24-Aug-08 18:20
N a v a n e e t h24-Aug-08 18:20 
GeneralRe: Custome Control Problem Pin
Abhijit Jana24-Aug-08 18:26
professionalAbhijit Jana24-Aug-08 18:26 
GeneralRe: Custome Control Problem Pin
Muhammad Gouda24-Aug-08 22:01
Muhammad Gouda24-Aug-08 22:01 
GeneralRe: Custome Control Problem Pin
N a v a n e e t h25-Aug-08 7:09
N a v a n e e t h25-Aug-08 7:09 

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.