Using the ClientScript.RegisterStartupScript, is there a way to prompt a user for an answer like a vbyesno with a msgbox?
Posted on 2009-02-24
I discovered one problem with using the code shown below. Hopefully there's a way it can be adapted to allow for user input.
ClientScript.RegisterStartupScript(Me.GetType(), "alert", "<script>alert('" & message.Replace("'", "\'") & "');</script>")
I have one situation where I want to make sure the user really wants to perform a certain update. I had been doing that with msgbox using the vbyesno prompt. Is there a way to prompt the user for input using this code?