Solved

very easy

Posted on 2011-09-20
4
218 Views
Last Modified: 2012-05-12
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
Comment
Question by:1jaws
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
dumpsterdivingdave earned 500 total points
ID: 36571010
rgOrderHistory.NavigateUrl = "OrderHistory.aspx?id=" + dataKey["id"].ToString() + "&totals=" + dataKey["totals"].ToString();
0
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36571529
Always recommended:
gOrderHistory.NavigateUrl = String.Format("OrderHistory.aspx?id={0}&totals={1}",dataKey["id"].ToString(),dataKey["totals"].ToString());
0
 

Author Closing Comment

by:1jaws
ID: 36571533
Thanks!!
0
 

Author Comment

by:1jaws
ID: 36571534
sonawanekiran, also thank you for your suggestion...
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question