Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi,

 

I am using image buttons for saving data.

on onclick of image button i need to display confirmation message "Do you want to save data?".This need to be done on client side.

on "ok" i am updating the data.

I wrote confirm message script.It is working, but validations present in the page are not working.

can any one help me to solve this problem.

I need both confirmation message and validations to work.

 

Thanks

Posted

Hi

 

Hi,

 

The very very simple way is to add a line "btnImage.Attributes.Add("onclick", "checkvalidation()")" in the page load of the code behind page. Declare that function in the client side.

 

The client side function can be

 

sub ConfirmDelete()

 

Response = msgbox("Do you want to save data?", vbYesNo, "Save Data")

 

if Response = vbNo then

window.event.returnValue =false

end if

end sub

 

Note: This is very much beginners level code, but will work

 

hi,

 

I am using image buttons for saving data.

on onclick of image button i need to display confirmation message "Do you want to save data?".This need to be done on client side.

on "ok" i am updating the data.

I wrote confirm message script.It is working, but validations present in the page are not working.

can any one help me to solve this problem.

I need both confirmation message and validations to work.

 

Thanks

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...