Asp.Net windows forms
i want to see the message that it is successfully saved are added , to that what is the code i want write , after inserting all the details finally after clicking add button in windows form i want to see the above requirement please help me with that code
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Guest UserRank #258 · 9.8K pointsPosted Jul 24, 2014, 12:11 AM EDT
if you can post your code, what you want to achieve I can share my views better.
twitter @sumitjolly
Former memberPosted Jul 24, 2014, 12:39 AM EDT
To display success message in asp.net like window form, use following below code
string display = "Pop-up!"; ClientScript.RegisterStartupScript(this.GetType(), "yourMessage", "alert('" + display + "');", true);
In windows
MessageBox.Show("caption","Message");
kindly mark as answer, if it helps you.
Thanks
Kailash
lokesh sri32 pointsPosted Jul 24, 2014, 2:44 AM EDT
CashBAL cashbal = new CashBAL(); CouponsDTO coupons = new CouponsDTO(); public AddCoupons() { InitializeComponent(); } private void btnAdd_Click(object sender, EventArgs e) { coupons.CouponCode = txtcouponcode.Text; coupons.DiscountPercentage = Convert.ToInt32(txtdiscountpercentage); coupons.ExpiryDate = Convert.ToDateTime(dateTimeExpirydate); coupons.CuponDescription = textDiscount.Text; string Opertion = "Insert";lokesh sri32 pointsPosted Jul 24, 2014, 7:21 AM EDT