DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Jeff Guest

    passing multiple parameters to stored procedure


    Need help with passing multiple arguments to stored procedure


    // This line works

    ls_href="ContractedResults.asp?myparam1=" + ls_parm1;

    ---------------------------------------------------------------------


    var ls_parm1, ls_parm2, ls_parm3, ls_href;

    ls_parm1=document.thisForm.txtNDC.value;
    ls_parm2=document.thisForm.txtTrade.value;
    ls_parm3=document.thisForm.txtGeneric.value;



    // this line does not work

    ls_href="ContractedResults.asp?myparam1=" + ls_parm1 + "?myparm2=" + ls_parm2
    + "?myparm3=" + ls_parm3;




  2. #2
    Sergey Guest

    Re: passing multiple parameters to stored procedure


    To pass multiple parameters in URL separate them with &
    Your line will look like this:
    ls_href="ContractedResults.asp?myparam1=" + ls_parm1 + "& myparm2=" + ls_parm2
    + "&myparm3=" + ls_parm3

    sergey

    "Jeff" <jeffm@earthlink.net> wrote:
    >
    >Need help with passing multiple arguments to stored procedure
    >
    >
    >// This line works
    >
    >ls_href="ContractedResults.asp?myparam1=" + ls_parm1;
    >
    >---------------------------------------------------------------------
    >
    >
    >var ls_parm1, ls_parm2, ls_parm3, ls_href;
    >
    >ls_parm1=document.thisForm.txtNDC.value;
    >ls_parm2=document.thisForm.txtTrade.value;
    >ls_parm3=document.thisForm.txtGeneric.value;
    >
    >
    >
    >// this line does not work
    >
    >ls_href="ContractedResults.asp?myparam1=" + ls_parm1 + "?myparm2=" + ls_parm2
    >+ "?myparm3=" + ls_parm3;
    >
    >
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links