JSP passes multiple parameters using a URL __jsp

Source: Internet
Author: User

Using Java statements in C # to pass multiple parameters using URLs,

Original statement: String str = ' <script language= ' JavaScript ' >window.showmodaldialog (' xmjl_editor.aspx?id= ' + Txt_nodeid. Text + "& xmjl_id=" + GRID_XMJL. Datakeys[e.rowindex]. Value.tostring () + "', ' string t ', ' scroll=yes;status=0;help=0;resizable=1;height=400px;width=800px ') </script > ";

But how also pass the parameter, later from the Internet search, also did not find a practical method, later an unintentional operation resolved the problem, modify the following:

String str = "<script language= ' JavaScript ' >window.showmodaldialog (' xmjl_editor.aspx?id= ' + Txt_nodeid.) Text + "&xmjl_id=" + GRID_XMJL. Datakeys[e.rowindex]. Value.tostring () + "', ' string t ', ' scroll=yes;status=0;help=0;resizable=1;height=400px;width=800px ') </script > ";

Other places have not changed, the main is "& xmjl_id" changed to "&xmjl_id", remove the connection symbol after the space is correct.

A small problem, toss me for a long time, programming no small things.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.