Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Textbox with Actions?Textbox with Actions?
Previous
 
Next
New Post
8/1/2007 1:51 PM
 

You need to change the cmdMyCommand to be the id of your specific button/link that you want to attach this message to.

Personally it sounds like you are not too familiar with ASP.NET development technologies, I would highly recommend reading a few articles regarding user input and data actions.

As I mentioned to provide much more guidance we will need to see exactly what you have.  However, I can say taht a textbox input WILL NOT directly map to a sql parameter, you must create a prameter and give it the value to use.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
8/1/2007 2:15 PM
 



In regards to this post, as well as my "Understanding: Booleans?"  post, any tutorial sites that you feel rise above the rest?


-machina12

 
New Post
8/1/2007 2:23 PM
 

You will need to use the exact exmaple that was provided above and do that to your confirm button at page_load.

Then on the actual click event you will then do your deletion.

The javacript line with the confirm in it is what gives them the yes/no/cancel option.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
8/1/2007 3:37 PM
 



That makes sense.
Yet using that code still throws errors. Try to keep it simple.

Think that already setting up OnClick within .ascx will be easier. Onclick name: confirmclick

With the OnClick already named, I then need to make event for when button clicked.
That would include the: return confirm('Are You Sure You Wish To Delete This Information?'), right?

Or is this within page load?  Seems like I am getting resistance because it does not recognize the return command.
And the last element, the javascript you mention, where is that refereneced?


-machina12

 
New Post
8/1/2007 4:41 PM
 

In your page load you need to do the following

cmdMyCommand.Attributes.Add("onClick", " return confirm('Are You Sure You Wish To Delete This Information?');");

Where the cmdMyCommand is the name of your button.  This adds the javascript that does the confirmation.

Then on the click event for the button you must then do whatever is needed to actuall delete the record


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Textbox with Actions?Textbox with Actions?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out