Solved

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

Posted on 2014-11-18
1
215 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
performance tune IIS 10 on win 2016 that only runs one website 4 62
MediaHelp 4 23
C# winforms programmitically move panels 6 29
What Does This C# Code Block Do? 5 30
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…
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
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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