Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

I have a line of code in my VB ASP.NET app which confirms a delete action on a datagrid. This works without problems but I need to make the Javascript alert multiline, I am struggling with the syntax and cannot figure out how to go about this.

Example of what I need is

 

------------------------------------------

|

| Are you sure you want to delete:

|

| Project No: 51151

| Date: 23/04/2005

| Notes: Sorry cannot confirm.

|

| OK CANCEL

|_____________________________________

 

 

The code below is what works for a single line alert box.

 

btnConfirm.Attributes("onClick") = "return confirm('Are you sure you wish to confirm:');"

 

Any ideas how and where to place the "vblf" statement.

 

Martin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...