Results 1 to 7 of 7

Thread: Submit problem

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Submit problem

    Hello everybody,

    I have two buttons(images) "Save" and "Delete" in my aspx file. On the click of "Save" and "Delete" form should be submitted and related operations should be performed. "Save" is working fine. But when I write code for "Delete", how do I know whether form is submitted by clicking "Save" or "Delete".

    Thanks

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Submit problem

    Just write the code to perform your operations in the delete button's click event. You don't need to worry about the form being "submitted" here. Are you facing a problem with this?

  3. #3

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Submit problem

    I do not have buttons, rather I have images for "Save" and "Delete" and I explicitly submit form on the click of these images.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Submit problem

    You could use image buttons then.

  5. #5

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Submit problem

    Thanks mendhak. Where can I find image buttons ? Can we provide all the styles etc. to the image buttons which we apply on normal images ?

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Submit problem

    It's under the Web Forms controls tab in your toolbox bar.

    Right under link button. And yes you can apply styles on it.

  7. #7
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Submit problem

    Once you have added a image button you can do the follwing:
    Code:
    Private Sub ImageButton1_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
        'code here to save/delete stuff
    End Sub
    Hope that helps.

    Woka

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width