| Return Create A Forum - Home | |
| --------------------------------------------------------- | |
| ~~[DF]DeathFighter~~World Of Expernce | |
| https://dftdm.createaforum.com | |
| --------------------------------------------------------- | |
| ***************************************************** | |
| Return to: New's and Update! | |
| ***************************************************** | |
| #Post#: 106-------------------------------------------------- | |
| The reason is that we | |
| By: asim km Date: September 3, 2023, 11:48 pm | |
| --------------------------------------------------------- | |
| This is the deletion confirmation page. Next, we'll focus on | |
| actually removing the video from the database. Step 1: Create a | |
| page to confirm deletion This step is very similar to what we | |
| did before. Add a delete link in front of each video in the | |
| list. After clicking on this link, a view will be displayed with | |
| details of the video to be removed. Use to display different | |
| properties of the video. Don't worry about deleting videos from | |
| the database just yet. After trying it out, check out my | |
| solution: First, we need to add a delete link in front of each | |
| video. So open in View Video , and change as follows. | |
| Note that I added a vertical separator between Edit and Delete | |
| to separate them. Next, we should create a new action in the as | |
| follows: There should be nothing Phone Number List | |
| https://agbdirectory.com/ | |
| new to you at this point. We just pull | |
| the video to show the user before deleting it. Now, let's create | |
| the corresponding view. Add a new view named delete to the view | |
| video. Make sure it's not a partial view and has a layout. Write | |
| the following code in the view. Here I use a simple to display | |
| the properties of the video. You can use anything to bring out | |
| the details of your video. | |
| [img] | |
| https://scontent.fdac5-2.fna.fbcdn.net/v/t39.30808-6/375057161_263421249912062_… | |
| https://agbdirectory.com/ | |
| From a learning perspective, this doesn't matter. Next, write | |
| the following code in the view: You might be wondering why I'm | |
| using when we don't really have a data entry form here. need | |
| to use the method to invoke the delete operation. Likewise, | |
| whenever we need to modify data in a , we should use to prevent | |
| accidental data modification. In , the only way to use is to | |
| create a form. In this example, our form has only a submit | |
| button and no input fields. Note that in this form we also have | |
| a hidden field to render the video's in the markup. | |
| ***************************************************** |