Solved

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

Posted on 2014-11-18
1
221 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:
Vel Eous earned 500 total points
ID: 40450529
Something like this?

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

Open in new window

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hey!!!! 1 25
Example works but why do I need to click twice on button 4 48
IEnumerable<T> to a List<T> 8 37
Amazon S3 .Net error 5 17
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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