•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,530 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,824 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1155 | Replies: 4
![]() |
•
•
Join Date: Sep 2007
Posts: 69
Reputation:
Rep Power: 0
Solved Threads: 0
"I want each phrase to be one under each other like this. But in vain all appear on the same line. Need help plzzzz"
i want the message box to display:
'You have selected to buy:
3inch Screen MP4 / MP3 Player 2G. Total: Rs 5500
MP3 Player Sunglasses 1GB. Total: Rs 5000
The Orginal Apple Ipod 80GB . Total:Rs 11000
Total Price of buying product: Rs 21500
An email has been sent to you to confirm your order.
Thanks for buying our product. Do Come Again!'
Here is my code:
a = "You have selected to buy: "
If CheckBox1.Checked Then
If txtQuantity.Text = "" Then
MsgBox("Please enter your quantity for MP4/Mp3 Player", 64, "Message Error")
CheckBox1.Checked = False
Else
count = count + txtQuantity.Text
If count > 6 Then
MsgBox("You can't order more than 6", 64, "Message Error")
CheckBox1.Checked = False
txtQuantity.Text = ""
Else
totaladd = txtQuantity.Text * 5500
order = order & "3inch Screen MP4 / MP3 Player 2G. Total: " & totaladd
total = (total + totaladd)
End If
End If
End If
If CheckBox2.Checked Then
If txtQuantity2.Text = "" Then
MsgBox("Please enter your quantity for MP3 Sunglasses", 64, "Message Error")
CheckBox2.Checked = False
Else
count = count + txtQuantity2.Text
If count > 6 Then
MsgBox("You can't order more than 6")
CheckBox2.Checked = False
txtQuantity2.Text = ""
Else
totaladd = txtQuantity2.Text * 5000
order = order & " MP3 Player Sunglasses 1GB. Total:" & totaladd
total = (total + totaladd)
End If
End If
End If
If CheckBox3.Checked Then
If txtQuantity3.Text = "" Then
MsgBox("Please enter your quantity for Apple Ipod")
CheckBox3.Checked = False
Else
count = count + txtQuantity3.Text
If count > 6 Then
MsgBox("You can't order more than 6")
CheckBox3.Checked = False
txtQuantity3.Text = ""
Else
totaladd = txtQuantity3.Text * 11000
order = order & " The Orginal Apple Ipod 80GB . Total: " & totaladd
total = (total + totaladd)
End If
End If
End If
MsgBox(a & order & " TotalPrice of buying product: " & total & ". An email has been sent to you to confirm your order. Thanks for buying our product. Do Come Again!", 64, "New Technologie")
End Sub
i want the message box to display:
'You have selected to buy:
3inch Screen MP4 / MP3 Player 2G. Total: Rs 5500
MP3 Player Sunglasses 1GB. Total: Rs 5000
The Orginal Apple Ipod 80GB . Total:Rs 11000
Total Price of buying product: Rs 21500
An email has been sent to you to confirm your order.
Thanks for buying our product. Do Come Again!'
Here is my code:
a = "You have selected to buy: "
If CheckBox1.Checked Then
If txtQuantity.Text = "" Then
MsgBox("Please enter your quantity for MP4/Mp3 Player", 64, "Message Error")
CheckBox1.Checked = False
Else
count = count + txtQuantity.Text
If count > 6 Then
MsgBox("You can't order more than 6", 64, "Message Error")
CheckBox1.Checked = False
txtQuantity.Text = ""
Else
totaladd = txtQuantity.Text * 5500
order = order & "3inch Screen MP4 / MP3 Player 2G. Total: " & totaladd
total = (total + totaladd)
End If
End If
End If
If CheckBox2.Checked Then
If txtQuantity2.Text = "" Then
MsgBox("Please enter your quantity for MP3 Sunglasses", 64, "Message Error")
CheckBox2.Checked = False
Else
count = count + txtQuantity2.Text
If count > 6 Then
MsgBox("You can't order more than 6")
CheckBox2.Checked = False
txtQuantity2.Text = ""
Else
totaladd = txtQuantity2.Text * 5000
order = order & " MP3 Player Sunglasses 1GB. Total:" & totaladd
total = (total + totaladd)
End If
End If
End If
If CheckBox3.Checked Then
If txtQuantity3.Text = "" Then
MsgBox("Please enter your quantity for Apple Ipod")
CheckBox3.Checked = False
Else
count = count + txtQuantity3.Text
If count > 6 Then
MsgBox("You can't order more than 6")
CheckBox3.Checked = False
txtQuantity3.Text = ""
Else
totaladd = txtQuantity3.Text * 11000
order = order & " The Orginal Apple Ipod 80GB . Total: " & totaladd
total = (total + totaladd)
End If
End If
End If
MsgBox(a & order & " TotalPrice of buying product: " & total & ". An email has been sent to you to confirm your order. Thanks for buying our product. Do Come Again!", 64, "New Technologie")
End Sub
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation:
Rep Power: 7
Solved Threads: 59
MsgBox("This is line one.\r\nThis is line two")MsgBox("This is line one." & Environment.NewLine & "This is line two")http://msdn2.microsoft.com/en-us/lib...t.newline.aspx
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- how to print out an array in a message box (Java)
- Message Box Switch Statement (Java)
- I need the Mac OS X message box function (C)
- message box (ASP.NET)
- Time Release Message Box (C)
- download message box's events (ASP)
- repeating the whole program after pressing Yes button in the confirmation message box (Java)
Other Threads in the ASP.NET Forum
- Previous Thread: How to get the current web page information in asp.net?
- Next Thread: adding WinForm in VB.NET



Linear Mode