Solved

very easy

Posted on 2011-09-20
4
217 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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