• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

very easy

rgOrderHistory.NavigateUrl = "OrderHistory.aspx?id=" + dataKey["id"].ToString();
I want to add a second parameter to pass called totals and I have a dataKey "totals" for that.. how can I built rest of the string above?
0
1jaws
Asked:
1jaws
  • 2
1 Solution
 
dumpsterdivingdaveCommented:
rgOrderHistory.NavigateUrl = "OrderHistory.aspx?id=" + dataKey["id"].ToString() + "&totals=" + dataKey["totals"].ToString();
0
 
Kiran SonawaneProject LeadCommented:
Always recommended:
gOrderHistory.NavigateUrl = String.Format("OrderHistory.aspx?id={0}&totals={1}",dataKey["id"].ToString(),dataKey["totals"].ToString());
0
 
1jawsAuthor Commented:
Thanks!!
0
 
1jawsAuthor Commented:
sonawanekiran, also thank you for your suggestion...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now