• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • 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
 
sonawanekiranCommented:
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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