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

  • Home
  • SEARCH
  • 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 8034613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:04:40+00:00 2026-06-05T02:04:40+00:00

I have this problem : I have a submit button defined as follows :

  • 0

I have this problem :
I have a submit button defined as follows :

 <input  type="submit" name="actionName" value="search" />
 <input  type="submit" name="actionName" value="New" />

both submit buttons are included in an Ajax beginForm:

@using (Ajax.BeginForm("PFSearch", "Payer", ajaxOptions))

In the controller … based on the actionName string provided .. i do different actions based on the value of button pressed within my Ajax befin form :

if (actionName="search")
{
//do something
}

And everything works like a charm .. until i want to add i want to add an image to the class of my submit button :

  <input class="search" type="submit" name="actionName" value="search" />
  <input class="search" type="submit" name="actionName" value="New" />

My search tab looks like this : enter image description here

As you can clearly see my main impediment is that by adding value … the text appears over my image.
How can i make those button act differently within my ajax begin form considering that giving value to the buttons doesn’t work ? Any alternatives or workarounds are appreciated. Thanks !

  • 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-05T02:04:43+00:00Added an answer on June 5, 2026 at 2:04 am

    Can you please give us a link to your project’s demo? And try to use some margin, padding and background-position:center;

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

Sidebar

Related Questions

I have this: <a> Stuff stuff stuff <input type=Submit onclick=....> </a> The problem is...when
Suppose I have a form like this: Name:<input type=text name=xxx id=name/> Type:<select> <option>xx</option> <option>xx</option>
I have this problem containing some inequations and requirement to minimize a value. After
I have a form which has a input textbox and submit button. On submission
I have this logical problem regarding on how to pass value from one JFrame
I have this function when I click on my submit button: $('#signup-button').click(function(event){ var username_check
I have a webpage with search form fields and on click of submit button,
I have a form that ends with input type='submit' That is used to submit
I am using the following code to disable the submit button $(input[type='submit']).attr(disabled, disabled); And
I have this problem where I open Visual Studio and the internal windows are

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.