Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:06:19+00:00 2026-06-12T14:06:19+00:00

in my project there’s a submit button <input type=submit value=submit form onclick=window.form1.submit(); id=subBut> after

  • 0

in my project there’s a submit button

 <input type="submit" value="submit form" onclick="window.form1.submit();" id="subBut">

after some more work on the project and while adding few ImageButton controls, it was standing out as un related button .

i tested an imageButton with onClick event .
the code of onClick is still empty

   <asp:ImageButton ID="ImgBut_Submt" ImageUrl="~/images/sendreq.jpg" 
        runat="server" OnClick="Submit_Click" style="width: 28px" />

code behind

protected void Submit_Click(object sender, ImageClickEventArgs e)
{
}

though seems that is doing same thing . is it ok to leave it as it is as a substitute

to a submit button .. am i missing somthing here ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:06:21+00:00Added an answer on June 12, 2026 at 2:06 pm

    input type=submit will anway submit the form, i dont think you need to do an onclick action.

    In ASP.Net world, though the events are fired using postbacks, the information is sent to server as a “Form Submit” only, the main difference i see in your content is you are trying to mix native html controls and asp.net web controls, thats where the whole confusion is.

    ASP.NET web controls though provide the same functionality as native html controls, it offers extra event handling mechanism and state information, its only a wrapper upon native html controls as browser can understand only them.

    in ASP.NET world you would not set the action attribute to form aswel as it is internally taken care by your ASP.NET framework.

    As Kapil mentioned you can have a submit button with css which can contain an image, similar to what ASP.NET does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my project there are some 'Prototype' factories that create instances by cloning a
In my project there is a Form mainForm in which there are two textBoxes
In my project there are some code snippets which uses StringBuffer objects, and the
In my django project there are some mysterious (at least for me as a
In my current project there is a Form class which looks like this: public
I'm currently working on a small project: there's a protocol for sending some strings
It's look like wired behaviour of Android 4.0. In my project there is some
In my project there is a Logic evaluation section, it take input as a
In my project there was a file named view controller.xib. I deleted a button
In my Project there are some names which coming from Database But Problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.