DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

10
kicks
published 1 year, 5 months ago, submitted by kicheto 1 year, 5 months ago

ivanuzunov.net — Have you tried using JavaScript confirm() function in ASP.NET Button, LinkButton or ImageButton client onclick property?

Add a comment 4 comments | category: | Views: 61 | Get KickIt image code
tags: , , , , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
Great tip; put this one in the bag.
posted by yesthatmcgurk yesthatmcgurk 1 year, 5 months ago
You dont’ really need to use an if statement within the OnClientClick since confirm returns true or false. Here’s a slightly simpler solution:

<asp:LinkButton ID=”lbtnDelete” runat=”server” CommandName=’DeleteItem’ Text=’Delete’ OnClientClick=”return confirm(’Are you sure you want to\ndelete this item?’);”></asp:LinkButton>
posted by crpietschmann crpietschmann 1 year, 5 months ago
color me old, but using "return confirm " has been around quite awhile. nothing to see here... move on.

:-)
posted by photoz 1 year, 5 months ago
I posted a comment to the blog post saying: "Why not return Confirm()?"

He deleted the comment...
posted by simoneb simoneb 1 year, 5 months ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge