473,513 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

webmsgbox

73 New Member
Hi,
am working on asp.net with vb.net
how to write code to dispaly webmessagebox, that should contain yes, no options
suppose if user want to delete a record after clicking delete button i have to display a webmessagebox with yes, no buttons according to the selected button further steps will go..


Thank you
Narendra
Jan 26 '08 #1
4 3144
kenobewan
4,871 Recognized Expert Specialist
What have you tried so far? Have you received any errors?
Jan 26 '08 #2
minhnhat2807
4 New Member
Hi,
am working on asp.net with vb.net
how to write code to dispaly webmessagebox, that should contain yes, no options
suppose if user want to delete a record after clicking delete button i have to display a webmessagebox with yes, no buttons according to the selected button further steps will go..


Thank you
Narendra

very easy.

client:
function Delete()
{
var a = confirm("are you sure")
document.getElementById("HiddenFiled".value = a
}

.server

buttonDelete.atrributes.add("onclick","Delete()")
Delete(HiddenField.value) // write function Delete(Byval b as Boolean)
Jan 31 '08 #3
jawaharks
12 New Member
you can write a javascript for that.. it will give the confirm() method, which pops a window with a messaage and twoo buttons(ok and delete).
Jan 31 '08 #4
kunal pawar
297 Contributor
U can use javascript confim() function, but this is not shows "Yes" "NO" option. it will show "OK" "cancel".

Or u can used vb script to display msg box with "Yes/No" option
Feb 1 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
1283
by: alanb | last post by:
Can somebody be willing to provide me a few lines of code? a submit botton on page that when clicked will open a directory folder i.e networ/public directory with files and then make a file...
1
1285
windows_mss
by: windows_mss | last post by:
using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; ...
4
1683
by: suganya | last post by:
Hi By getting the email id from txtEmailId, I have to send the user name & password to that particular email id. For that on button click event I have given the coding as Protected Sub...
2
2053
by: suganya | last post by:
Hi I have created the class "WebMsgBox.cs" in App_Code. The coding is using System; using Microsoft.VisualBasic; using System.Text;
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.