• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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

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
Mike Eghtebas
Asked:
Mike Eghtebas
1 Solution
 
Vel EousResearch & Development ManagerCommented:
Something like this?

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

Open in new window

0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now