Click here to Skip to main content
15,566,691 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
OriginalGriff 9-Jul-11 9:54am    
"not work" is spectacularly useless.
What happens? What doesn't happen? What did you expect to happen? What did you do to make it happen?
Use the "Improve question" widget to edit your question and provide better information.
fjdiewornncalwe 9-Jul-11 10:38am    
As Griff already indicates, you need to add the exception you are receiving to your question. Your NavigateUrl is correct in syntax so your issue will either be how you use this NavigateUrl, or how you parse the querystring values on the PersonalInformation.aspx page.
OriginalGriff 9-Jul-11 10:43am    
I suspect the problem is that he wants the contents of two variables, rather than fixed strings "Pro" and "Dealer", but without better info...

1 solution

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;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900