Results 1 to 2 of 2

Thread: How to pass two parameters

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Location
    dallas,texasd
    Posts
    26

    How to pass two parameters

    Hello,

    I have a datalist container on one page and i have two datalist containers on the desitation page. By passing the IDDepartment Parameter it populates a datalist on the receiving page; however i now find myself needing to seperate the information that is in one datalist on the receiving page into two (AND SO ON) datalist so that i may more define the information that is in each list, and prepare it for the next desitation page.
    I have run into this type of problem before and i keep working around it untill i am faced with it again.
    I am not sure if i am even asking this correctly; however, my overall goal here is to set up the Databinder.Eval to where i can pass more than one parameter. Or would this be done in code some way?


    The reason that i am wanting to pass more than one paramete is because the IDDepartment has a relation to all of the prodcuts; however, the IDCompany does not. I am wanting the IDCompany to be the decision maker to what product gets into which datalist.

    * Any suggestions on this would be awsome, because i keep running into this problem and there has to be a way to do this.

    Thanks,
    Erik




    From the page that i have one datalist container, is it possiable to pass more than one Parameter?
    ===========================================================

    Below where it says IDDepartment= how would i add another Parameter to pass here?

    <a href='WindowTreatment_Home.aspx?IDDepartment=<%# DataBinder.Eval(Container.DataItem, "DepartmentID") %>'>

    ***I know this is not right but is there a way to seperate the variables?
    LIKE-----> IDDepartment,IDCompany=


    ========================================================

  2. #2
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: How to pass two parameters

    Try

    HTML Code:
    <a href='WindowTreatment_Home.aspx?IDDepartment=<%# DataBinder.Eval(Container.DataItem, "DepartmentID") %>&IDCompany=<%# DataBinder.Eval(Container.DataItem, "CompanyID") %>'>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width