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 3308150
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:29:19+00:00 2026-05-17T21:29:19+00:00

Ok, This is a bit confusing and frustrating. Here’s what I have in my

  • 0

Ok, This is a bit confusing and frustrating.
Here’s what I have in my masterpage :

<%using (Html.BeginForm("Index", "SearchController", FormMethod.Post, new { @name = "dosearch" }))
                                          {%>
                                            <input type="text" name="ssearch" class="search"><a href="#" onclick="document.dosearch.submit();"><input id="Image1" type="image" runat="server" src="~/App_Themes/DefaultTheme/images/btn_search.gif" width="74" height="29" style="border:none" /></a>
                                        <%} %>

But the corresponding generated html is:

<form action="" method="post" name="dosearch">
                                            <input type="text" name="ticketSearch" class="search"><a href="#" onclick="document.dosearch.submit();"><input src="../App_Themes/DefaultTheme/images/btn_search.gif" name="ctl00$Image1" type="image" id="ctl00_Image1" width="74" height="29" style="border:none" /></a>
                                        </form>

Question is WHY action is empty whereas I have mention action and controllername when declaring the HTML.Helper ????
as a reasult, the seach is not working for obvious reason.

Please help. 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-05-17T21:29:19+00:00Added an answer on May 17, 2026 at 9:29 pm

    I think your problem is that you are using “SearchController” but you only need to use “Search” as the MVC framework will add the word “controller”.

    Also, not that it matters but you are missing a closing input tag

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

Sidebar

Related Questions

this question sounds a bit confusing, but here is what i have: <div id=type2>
Ok this might be a bit confusing, but here goes. Let's say I have
Okay, so this is a bit confusing (well to me). I have a string
I know the title of this question is a bit confusing, but here it
The title is a bit confusing but here's what I'm after: I have a
The title might have been a bit confusing but I can clarify here. I'm
I am finding it bit confusing working around this problem. I have parent DIV
This is a bit confusing. I have a linux executable that I do not
Bear with me—this might be a bit confusing! I have a javascript that adds
Firstly: apologies if this is a duplicate post. Things got a bit confusing as

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.