I am sorry to hear that you are having an issue with the order, [enter customer’s name]. I would be more than glad to check this for you and assist you with the best course of action. Would you mind staying online for a few minutes?
Thank you for your patience, [enter customer’s name]. This might be due to a processing error, and we will be reviewing our processes to ensure the proper procedures are being followed. In this case, a reprint will definitely fix the issue. Would you like to consider this option?
[If cx agrees]
Thanks for confirming. I would be more than glad to place the reorder at no additional cost. Could you please confirm the shipping address?
Thank you for confirming the address. Could you please allow me a few minutes while I place the reorder?
I appreciate your patience, [enter customer’s name]. I have processed the reorder with xxxx delivery and the new order number is xxxxxxx. The expected arrival date for the reorder is xxxxxx.
You will also receive a system-generated order confirmation email shortly using which you can check the status of the order on your order history page.
Lastly, we do not want to trouble you in returning the items from the original order, you can discard them carefully.

Tuhin PaulRank #7 · 71.9K reputationPosted Feb 16, 2023, 12:45 PM EST
Hi Peer,
This is bit on the steeper side , but I tried. Hope it works for you.
A sample windows form :
using System; using System.Windows.Forms; namespace PopupWindowExample { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnShowPopup_Click(object sender, EventArgs e) { // Split the data into separate strings string intro = "I am sorry to hear that you are having an issue with the order, "; string customerName = "[enter customer’s name]"; string checkMessage = "I would be more than glad to check this for you and assist you with the best course of action. Would you mind staying online for a few minutes?"; string thanksMessage = "Thank you for your patience, " + customerName + ". This might be due to a processing error, and we will be reviewing our processes to ensure the proper procedures are being followed. In this case, a reprint will definitely fix the issue. Would you like to consider this option?"; string reorderMessage = "Thanks for confirming. I would be more than glad to place the reorder at no additional cost. Could you please confirm the shipping address?"; string reorderConfirmation = "Thank you for confirming the address. Could you please allow me a few minutes while I place the reorder?"; string processingMessage = "I appreciate your patience, " + customerName + ". I have processed the reorder with xxxx delivery and the new order number is xxxxxxx. The expected arrival date for the reorder is xxxxxx."; string confirmationMessage = "You will also receive a system-generated order confirmation email shortly using which you can check the status of the order on your order history page."; string returnMessage = "Lastly, we do not want to trouble you in returning the items from the original order, you can discard them carefully."; // Create a popup window and display the messages string message = intro + customerName + Environment.NewLine + Environment.NewLine + checkMessage + Environment.NewLine + Environment.NewLine + thanksMessage + Environment.NewLine + Environment.NewLine + reorderMessage + Environment.NewLine + Environment.NewLine + reorderConfirmation + Environment.NewLine + Environment.NewLine + processingMessage + Environment.NewLine + Environment.NewLine + confirmationMessage + Environment.NewLine + Environment.NewLine + returnMessage; MessageBox.Show(message, "Order Issue Resolution", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }In this program, we create a Windows Forms application with a button called
btnShowPopup. When the button is clicked, a popup window is displayed with the messages split into separate strings using theEnvironment.NewLineconstant to create line breaks. TheMessageBox.Showmethod is used to display the messages in the popup window.peer Mohamed51 reputationPosted Feb 17, 2023, 7:12 AM EST
e.Row.Cells[1].Text = e.Row.Cells[1].Text.Replace("\n", "
");
this condition working in directly on grid but i should need
after click the button this conditon sholuld be working
this working after button click
if u know please guide
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 16, 2023, 11:38 PM EST
Hello Peer,
You can create your string like below, and then you can use it.
string message = "I am sorry to hear that you are having an issue with the order, [enter customer’s name]. I would be more than glad to check this for you and assist you with the best course of action. Would you mind staying online for a few minutes?\n\nThank you for your patience, [enter customer’s name]. This might be due to a processing error, and we will be reviewing our processes to ensure the proper procedures are being followed. In this case, a reprint will definitely fix the issue. Would you like to consider this option?\n\n[If cx agrees]\n\nThanks for confirming. I would be more than glad to place the reorder at no additional cost. Could you please confirm the shipping address?\n\nThank you for confirming the address. Could you please allow me a few minutes while I place the reorder?\n\nI appreciate your patience, [enter customer’s name]. I have processed the reorder with xxxx delivery and the new order number is xxxxxxx. The expected arrival date for the reorder is xxxxxx. You will also receive a system-generated order confirmation email shortly using which you can check the status of the order on your order history page.\n\nLastly, we do not want to trouble you in returning the items from the original order, you can discard them carefully.";Thanks
Naimish Makwana
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 17, 2023, 7:16 AM EST
Hello Peer,
What you want in this?
e.Row.Cells[1].Text = e.Row.Cells[1].Text.Replace("\n", "
"); this working after button click
do you want to replace \n to
?
Thanks
Naimish
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 17, 2023, 8:57 AM EST
Hello Peer,
On button click you can do like below
protected void Button_Click(object sender, EventArgs e) { foreach (GridViewRow row in GridView.Rows) { row.Cells[1].Text = row.Cells[1].Text.Replace("\n", " "); } }Thanks
Naimish