#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    86
    Rep Power
    12

    passing an array list to queryString


    Hi all,
    I am creating dynamic controls in form.(depends on how many controls user want to create)
    After that I am getting text from all textboxes and adding to array List
    e.g.
    I have following arraylists
    startDate
    endDate
    wholeSaleRate
    retailRate

    now I need to pass these array list in queryString
    is it possible that I can add all these arraylist into one arrayList and pass that one in a queryString.

    I did the same thing in javaScript as follow
    Code:
    var allArrays = startDateArray+ "," + endDateArray+ "," + wholeSateRateArray+ "," + retailRateArray;
    And pass allArrays as queryString, then split it and again created arrays from queryString

    is something like this possible in ASP.net?

    thanks in advane for your time and help
    rainbow11
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2004
    Posts
    929
    Rep Power
    12
    You can't pass array objects through QueryString

    Good Luck
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    86
    Rep Power
    12
    Originally Posted by CSharp
    You can't pass array objects through QueryString

    Good Luck
    thanks CSharp for your reply.
    I try session, it works fine with session.

    thanks anyway for your reply.
    rainbow11
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2004
    Posts
    4
    Rep Power
    0

    Yes you can


    you can use spit function in asp.net with vb.net . actualy
    you just need to add in you class
    Imports Microsoft.VisualBasic and split(array,"delimiter") is working a it was
    but you can also use session("variables") as well .

IMN logo majestic logo threadwatch logo seochat tools logo