Click to See Complete Forum and Search --> : Creating a messagebox...


Unprettier
October 5th, 2003, 10:47 PM
how do i create a messagebox? right now all i have is the button attributes to create a messagebox...

button1.attribute("on click")_
"return confirm"(Are you sure you want to delete the item?")

this will output a messagebox with a yes or no button.. if you press yes.. well, you get the picture...

my friend taught me this to throw a message box first before i delete an item.. what other attributes are there? i mean, besides the "return confirm" what if I want only an ok button to appear? kinda like "OkOnly" in VB 6.. i know its a dumb question.. but i've been using .Net for only like a month and a half..

Rohit Kukreti
October 6th, 2003, 04:58 AM
Hi,

Herez the code to display a msg box on a btn click

Response.Write("<script>");
Response.Write("alert('hello');");
Response.Write("</script>");

U may not c the code initially just go to view -> source and look for my msg u'll get the code.

hope this helps
---
Rohit