Solved

c#, MessageBox.Show(employee.ID.ToString() + ", " + employee.Name.ToString());

Posted on 2014-11-18
1
196 Views
Last Modified: 2014-11-18
Is it possible to pass args in a message box like:

 MessageBox.Show("ID: {0}, Name: {1}",employee.ID , employee.Name);

similar to

 Response.Write("ID: {0}, Name: {1}",employee.ID , employee.Name);

In asp.net?
0
Comment
Question by:Mike Eghtebas
1 Comment
 
LVL 14

Accepted Solution

by:
Tchuki earned 500 total points
Comment Utility
Something like this?

MessageBox.Show(string.Format("ID: {0}, Name: {1}", employee.ID, employee.Name));

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

12 Experts available now in Live!

Get 1:1 Help Now