如何在javascript中编写查询字符串? [英] How to write query string in javascript?

查看:71
本文介绍了如何在javascript中编写查询字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在该函数中有一个javascript函数我想写一个查询字符串,我想传递这三个值,并使用这三个值我必须在另一个中过滤网格页面

我在这里使用的javascript函数是

函数OnSubjectClientSeriesClicked(sender,eventArgs)
{
尝试
{
var data = eventArgs.get_Category();
var res = data.split( );
var str = http ://localhost/Reports.aspx?name = res [0]& CourseId = res [1]& SectionId = res [3]
}
< span class =code-keyword> catch
(e)
{

}

}



可以帮助我吗?

解决方案

参考:在ASP.NET中使用JavaScript传递和检索查询字符串 [ ^ ]

Hi,
I have a javascript function in that function i want to write a query string and i want to pass the three values and by using that three values i have to filter the grid in another page
the javascript function i used here is

function OnSubjectClientSeriesClicked(sender, eventArgs)
      {
          try
          {
              var data = eventArgs.get_Category();
              var res = data.split(",");
            var str = "http://localhost/Reports.aspx?name=res[0]&CourseId=res[1]&SectionId=res[3]"
          }
          catch (e)
          {

          }

      }


can any one help me?

解决方案

Refer: Passing and Retrieving Querystring using JavaScript in ASP.NET[^]


这篇关于如何在javascript中编写查询字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆