Solved

very easy

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now