Passing, arrays from the vb backend to the aspx frontend

Last post 06-01-2009 8:31 AM by sreejukg. 2 replies.

Sort Posts:

  • Passing, arrays from the vb backend to the aspx frontend

    05-27-2009, 10:40 AM
    • Member
      point Member
    • ajoe
    • Member since 05-27-2009, 2:32 PM
    • Posts 1

    hey guys im new of this forum.

    what I'm trying to do is display a submenu dynamically, the items that i want to display are in the VB backend. how do i pass it to the asp so i can display it in the submenu?

    thanks for you help guys

  • Re: Passing, arrays from the vb backend to the aspx frontend

    06-01-2009, 3:56 AM
    Answer

    Hi,

    ajoe:
    VB backend

    Is it .vb file? If so, based on my understandings, you want to dynamically create menu whose items are generated by the code-behind.

    Please check the following link.

    http://www.aspnettutorials.com/tutorials/controls/sqldb-driven-menu-csharp.aspx

     

     

    Please feel free to let me know if I’ve misunderstood anything.

    Sincerely,
    Zong-Qing Li
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
  • Re: Passing, arrays from the vb backend to the aspx frontend

    06-01-2009, 8:31 AM
    • Contributor
      6,244 point Contributor
    • sreejukg
    • Member since 10-31-2004, 7:33 AM
    • Bahrain
    • Posts 1,053

     I dont understand your requirement? If you mean create an array in the code behind file and access from the page, it is easy. Create the array variable directly inside the class(ie. not inside any event handlers or methods). Make sure the variable is declared public. Now you can access this variable from inside the aspx page for e.g.

    <body>

     ..........................................

    <%

    write code similar to code behind that access the variable... 

    %>

    The real voyage of discovery consists not in making new landscapes, but in having new eyes
Page 1 of 1 (3 items)