treeview-Innavigate URL传递两个查询字符串值 [英] treeview-Innavigate URL pass two querystring values

查看:81
本文介绍了treeview-Innavigate URL传递两个查询字符串值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一个树形视图
在那我想通过导航URL传递两个查询字符串值
给我语法

我用作
NavigateUrl =〜/PersonalInformation.aspx?value =" +"Pro" +& Dealer =" +经销商"

但不起作用

i use one treeview
in that i want to pass two querystring values through navigate URL
give me syntax

i use as
NavigateUrl="~/PersonalInformation.aspx?value="+ "Pro" + "&Dealer=" +"Dealer"

but not work

推荐答案

一个完整的猜测,但可能来自以下代码:

请注意,这非常简单,但是应该为您提供一个开始.

A complete guess but perhaps the following from code behind:

Note that this is quite simplistic but should give you a start.

string pro = "pro";
string dealer = "dealer";
string url =
    string.Format(
        @"~/PersonalInformation.aspx?value={0}&Dealer={1}",
        pro,
        dealer);

node.NavigateUrl = url;


这篇关于treeview-Innavigate URL传递两个查询字符串值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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