User Profile

Collapse

Profile Sidebar

Collapse
zeejay
zeejay
Last Activity: Aug 12 '10, 02:22 PM
Joined: Jul 19 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • zeejay
    started a topic Why my session used in another page is empty?
    in .NET

    Why my session used in another page is empty?

    On the Default.aspx
    Code:
    Dim i As Integer
            Dim array1 As ArrayList = New ArrayList()
            For i = 0 To cbBrand.Items.Count - 1
                If cbBrand.Items(i).Selected Then
                    array1.Add(cbBrand.Items(i).Value)
                End If
            Next
            Session("array2") = array1
            Dim city As ArrayList = CType(Session.Item("array2"), ArrayList)
    ...
    See more | Go to post

  • zeejay
    replied to storing info into array
    in C
    i have this page call "checkboxpage.a spx" checkboxpage is where i get the checkbox values from.. so on "callingpage.as px.cs"
    i m trying to call the values from the checkbox in "checkboxpage.a spx" using
    Code:
    Request.Form.GetValues("cbBrand");
    and then store that value into an array....
    See more | Go to post

    Leave a comment:


  • zeejay
    replied to storing info into array
    in C
    yea erm... thats the part i would not like to hard code bro..
    See more | Go to post

    Leave a comment:


  • zeejay
    started a topic storing info into array
    in C

    storing info into array

    Hi, i am having trouble retrieving information from checkbox(from previous page) and storing it into this array as i do not wish to hard code the size of the array. can anyone help?

    Code:
    {
                String[] item = new String[0];
               
                item = Request.Form.GetValues("cbBrand");
                Label1.Text = item[0];
            }
    See more | Go to post

  • zeejay
    started a topic use of unassigned local variable

    use of unassigned local variable

    i am having some trouble trying to extract my custID from a SQL database as i keep getting a "use of unassigned local variable " on the custID i have underlined.. can someone help me please!!!
    Code:
    String[] custID;
                while (thisReader.HasRows)
                {
                    while (thisReader.Read())
                    {
    
                        custID[z] = thisReader.GetString(thisReader.GetOrdinal("CustId"));
    ...
    See more | Go to post
No activity results to display
Show More
Working...