|
-
Jun 30th, 2005, 10:53 AM
#1
Thread Starter
Addicted Member
Input type="image" asp.net
i am trying to make an image a submit button. I know in asp this works if you do input type="image" it doesnt seem to submit the form when i try this in asp.NET.
Any ideas why?
What am i doing wrong?
-
Jun 30th, 2005, 01:38 PM
#2
PowerPoster
Re: Input type="image" asp.net
Use the Image Button from the Toolbox.
-
Jul 1st, 2005, 12:56 AM
#3
Re: Input type="image" asp.net
Have you placed it in your form correctly?
-
Jul 1st, 2005, 08:11 AM
#4
Thread Starter
Addicted Member
Re: Input type="image" asp.net
I think i did.
i made the form runat="server".
My question is how do i tell it to submit the form?
When its clicked it calls the onClick event in the .vb code so how do i submit the form at that point?
-
Jul 4th, 2005, 08:40 AM
#5
Re: Input type="image" asp.net
The concept of submission is somewhat redundant with the use of server side controls. You can simply place the code you want to run (when the form is submitted) in the image's click event (codebehind)
-
Jul 5th, 2005, 08:13 AM
#6
Thread Starter
Addicted Member
Re: Input type="image" asp.net
I am trying to submit to a page that already exists, so i cant really do that.
So what you are telling me is that in .NET there is no way to make an image a submit button????
-
Jul 6th, 2005, 12:34 AM
#7
Re: Input type="image" asp.net
There is. In this case, you can place "document.form.submit()" in the image's onClick event.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|