-
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;
-
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;
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks