CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 2/24/2004 2:49:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
9 Items, 1 Pages 1 |< << Go >> >|
mstudor
Asp.Net User
I need an Alert/Warning/Confrim Box2/24/2004 2:49:09 PM

0/0

I need an Alert/Warning/Confrim Box so that while you are in the admin section and you click the "X" a confrimation box appears. Has anybody attempted this, using C#?
if so could you please help. thanks
thecrispy1
Asp.Net User
Re: I need an Alert/Warning/Confrim Box2/24/2004 8:04:39 PM

0/0

I am not into c#, but in vb.net it is pretty easy. You need to do an attribute.Add:
cmdDelete.Attributes.Add("onClick", "javascript:return confirm('Are You Sure You Wish To Delete These Items ?');")

No code necessary in the html. Just make sure this is only done on the first time the page is locaded.
Chris Paterra


teela
Asp.Net User
Re: I need an Alert/Warning/Confrim Box2/25/2004 12:39:08 PM

0/0

I have the same Problem, but I don't understand where I should paste this line and which namespace I should add.
I'd like to have the Confirm Box e.g. in Admin/Tabs.ascx to ask if the user really wants to delete, say a tab or a user.
thecrispy1
Asp.Net User
Re: I need an Alert/Warning/Confrim Box2/25/2004 12:52:20 PM

0/0

You shouldn't need to import any namespace, maybe the one necessary for the command button, System.Web.UI.Webcontrols or whatever. You should place the line in the Page_Load, and make sure it is only done if it is the first time the page is loaded.
Chris Paterra


teela
Asp.Net User
Re: I need an Alert/Warning/Confrim Box2/25/2004 1:11:05 PM

0/0

@thecrispy1: It worked perfectly, thank you!
teela
Asp.Net User
Re: I need an Alert/Warning/Confrim Box2/25/2004 1:21:40 PM

0/0

But it only works with asp:LinkButtons which have an id, it doesn't work with asp:imageButtons.

What's the difference, besides the one has an id and the other hasn't?
thecrispy1
Asp.Net User
Re: I need an Alert/Warning/Confrim Box2/25/2004 1:35:29 PM

0/0

I never tried with an image button, but if you assign an id and runat server I don't see why it would give you a problem. You may need to assign the attribute using a different method though.
Chris Paterra


teela
Asp.Net User
Re: I need an Alert/Warning/Confrim Box2/25/2004 2:36:30 PM

0/0

It's weird: It works with ImageButtons that already have an Id, but when I have an ImageButton without Id and assign one, it gives an error:

[Errorcode]
The compiler failed with error code 1

C:\Programme\ASP.NET Starter Kits\ASP.NET Portal (VBSDK)\PortalVBSDK\Admin\Roles.ascx(32) : error BC30451: Name 'Deletebutton' is not declared.
Deletebutton.Attributes.Add("onClick", "javascript:return confirm(Sure ?')")
[/Errorcode]
hooligannes97
Asp.Net User
Re: I need an Alert/Warning/Confrim Box3/1/2004 5:27:40 PM

0/0

try using the good old MessageBox inside a function that is called in the click event of both the link and the imagebutton.
Do you know the truth when you hear it?
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Practical Web Technologies Authors: P. K. Yuen, V. Lau, Pages: 928, Published: 2003
Foundation Website Creation with CSS, XHTML, and JavaScript: Design with CSS, XHTML, and Ajax Authors: Jonathan Lane, Steve Smith, Meitar Moscovitz, Pages: 275, Published: 2008
Special Edition Using Microsoft FrontPage 2000: Power Tool Kit Authors: Dennis Jones, Neil Randall, Pages: 0, Published: 1999
Adobe Creative Suite 2 All-in-One Desk Reference For Dummies Authors: Jennifer Smith, Christopher Smith, Pages: 736, Published: 2005
The Best Damn Firewall Book Period Authors: Thomas W. Shinder, Cherie Amon, Robert J. Shimonski, Debra Littlejohn Shinder, Pages: 1293, Published: 2003
Adobe Creative Suite 3 Design Premium All-in-One Desk Reference for Dummies Authors: Jennifer Smith, Christopher Smith, Pages: 816, Published: 2007
Excel 2007 All-In-One Desk Reference For Dummies Authors: Greg Harvey, Pages: 816, Published: 2006
Palm OS Programming: The Developer's Guide Authors: Neil Rhodes, Julie McKeehan, Pages: 681, Published: 2002
Adobe Creative Suite All-in-One Desk Reference For Dummies Authors: Jennifer Smith, Jen DeHaan, Pages: 744, Published: 2004
Palm Programming in Basic Authors: Jon Kilburn, Pages: 388, Published: 2002

Web:
Alert box for cfform - AsFusion alert("Are you sure you want to remove all records?", "Warning", mx.controls. ..... I need to use a confirm box and then do a template include or refresh ...
Code_Punk - Beginning JavaScript - Lesson 5 Prompt() Boxes Notice that we need to place the warning before the "alert(name)" box to get this to work properly. Warnings and special conditions almost always come ...
Metro State | Security Alert I received an e-mail with the subject “Warning: Confirm your online bank account ” (or ... YOU DO NOT NEED TO ALERT ALL THREE! We recommend you alert a major ...
Is there a way to show a simple message box? The alert function takes one argument, the string to display. It displays a dialog box with that message and an OK button. The confirm function is similar ...
cfform alert box cfform alert box was asked on the ColdFusion Talk (CF-Talk) mailing list. ... you'll need to wrap the AS up in cfsavecontent. function confirm(evt) { if ...
JavaScript Dialog Boxes - Alert, Prompt, Confirmation An alert dialog box is mostly used to give a warning message to the users. ... confirm() returns false. You can use confirmation dialog box as follows: ...
Nabble - ydn-javascript - SessionTimeout alert using Javascript extend the session. Is there any way I can auto sumbit the confirm box after 5 minutes . I think I need to use threads, but is there any other solution? ...
Alerts And Prompts | Alert Message | Alert Box | Confirm Box ... Checkout for Alerts And Prompts | Alert Message | Alert Box | Confirm Box category at DOWNLOADJAVASCRIPTS.com. A comprehensive resource of: DHTML, ...
How to give Yes no option message box using javascript?? - ASP.NET ... AFAIK you cannot change the confirm box to Yes/No box, so you have to live with it! ... Figure 2 – Alert Box warning with default check box message ...
How do I remove the security prompt alert box? alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel. Related Questions ...




Search This Site:










creating user groups

disabling the "account must be activated by administrator"

dotnetnuke upgrade error

same user names for a child subportal

enabletheming doesn't work

concept behind the master page

membership and profiles

what is the best dnn website development process?

encryption - decryption, any links?

vs - database mapping layer refresh

problems serializing webcontrol to xml using xmlserializer

removing hyperlinks in sidebar of wizard control

need: easy to use encrypt/decrypt functions

defaultbutton property and master pages

delete portal error

forms security

new website menu option not available

web part, masterpages and personalization

beta

why does my treeview not seem like a treeview??? sombody can help me?please...

how can you duplicate a project?

creating classes in web sites

difference between host and admin

user control problem

dnn 2.x with 1.x modules

top-notch hosting?

user roles

new .text skin - luxinterior

accessing asp.net objects in java

c# module - debugging hello world example

 
All Times Are GMT