.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to remove a submit() actions?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application

Android Web-brower's enter-key event in <input type="text"/> or <input type="search"/> is to action submit().....

but I don't want it !!

How to remove that??

Android's enter-keyCode is not "13".... and It don't action "return false;" too...

Please help me.

I want to your advice....

This is my Code.
<div data-role="fieldcontain" class="topMenu" id="searchSet">         
     <input type="search" id="search" value="" class="topMenu" placeholder="Filter contents..."/>                   
    <input type="text" style="visibility:hidden;"/>         




function Onsearch_Change(event) {

     var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;     


View Complete Post

More Related Resource Links

Can't Submit Form Unless Remove ASP .NET Server-Side Form


Something has been driving me nuts about a project  I'm working on.  Long story short: I have a small form that submits a user's name, email address, and a few hidden fields to an external vendor's website.  It works-but ONLY if I remove the "outer" ASP .NET server-side form!  If I don't do that, the page from which I'm submitting the form simply refreshes itself, and the form never gets submitted.


Custom Submit button rule breaks down in the middle of the actions


I have an infopath form that is published to a SharePoint library.  After the form is filled out, the user clicks a custom "Submit" button which has a rule with the following actions: 1) submit to main connection (database table), 2) submit to connection (SharePoint library - which starts an approval workflow in SharePoint), 3) thank-you message, and 4) close form without prompt.

99% of the time, all works well with form data getting submitted to database table, and also to the SharePoint library (which triggers the approval workflow).  1% of the time, when my custom submit button gets clicked, only the first rule action performs (i.e., data is submitted to main database connection), but the process stops at the action to submit to the SharePoint list.

I have checked and triple-checked the actions in the submit button rule, and they appear to be correct - and, in fact, behave correctly 99% of the time.  It's that 1% when the rule breaks at the point of submitting to SharePoint library that has me crazy.  This occurs only sporadically with different users -- users who it works correctly for most of the time.

I also have a form field I created called "DupChecker" that looks in the database table to see if the exact record exists, and if it does, it will not allow the user to submit it again.  So when the use

I thought this would be simple... Trying to create a login does an ajax check before submit


I have the standard .net login control that is working.  (Still learning .net after 15yrs of classic)

What I want to do is OnButtonClick run a javascript function (to do an ajax call to the db to check if login is valid or not) and if it returns true, then submit the form normally, else don't submit. The piece that I can't figure out, is how to correctly override the default click even to hit my JS routine and then submit the form properly afterwards.

Thanks ahead of time

Remove #Region from whole web site


Hi All,

I need to deliver source code to client and my boss need to remove all the comments and #region sections from the whole web site source code.

So is there any functionality available in visual studio 2010 or may be in an other 3rd party tool available to do so, which can remove all the #region from all over the source code ?

Otherwise my developers has to do donkey work.... :(( and I don't wish it. 

Any help or tips/tricks would be appreciated.


Web deployment project - web.config section replacement does not add remove tag


I have a web application that is actually installed as a component of a third party site.  In some configurations, I need to remove certain connection strings and re-add them.  I'm replacing this web.config section with a xml file that includes the following:

      <remove name="MyOverridenConnection"/>
      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

For some reason the remove tag is left out during the substitution and I end up with the following in the installed config:

      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

Is there any way to issue removes in replaced sec

Remove characters in a string


i have a string like this   sravani/, asdfff/, lsdsf/
i want to remove last character '/'  in the above string...
which function can i use?

pls help me....

Advanced Basics: Predicates and Actions


The System.Array and System.Collections.Generic.List classes provide methods that let you avoid writing code to loop through every element of an array or list to find the items you're looking for. Ken Getz explains.

Ken Getz

MSDN Magazine September 2006

Smart Tags: Simplify UI Development with Custom Designer Actions in Visual Studio


Windows Forms 2.0 components expose smart tags by utilizing Designer Actions. By taking advantage of this feature, you can add smart tags to your own custom components to make setting their properties and other actions much easier and developer-friendly.

Michael Weinhardt

MSDN Magazine July 2005

Formview1 Submit submitting Formview2



I have a FormView control (FormView1) on a Panel next to another Panel containing another FormView (FormView2) on the same page.

Both FormViews share the same datasource.

FormView2 has Required Field Validation controls within it and FormView1 does not.

Both FormViews are set for DefaultMode of insert.

When I submit FormView1 the Validation controls within FormView2 fire and prevent submission, which of course I don't want to happen. I need both FormViews to function independent of the other.

Is it improper to have two FormViews on the same page and sharing the same datasource?

Thank you in advance.


Data lost on submit


Dear Experts,

I have a modal popup and a GridView in it. The GridView is populated programmatically, i.e. I use .DataBind(). I can enter data into some of the GridView's controls. After I press Submit, I expect to do something with the entered data. But in the button press handler, the GridView is empty. I realize that I have to DataBind() again in the handler, but how can I preserve the data the user enters?


How To Remove a Query Parameter from a URL


for a string such as this:


how would I remove the parameter id 12?


Remove HTML formatting


Anyone know how to remove html-formatted-string to plain text programatically?

I want to get the same result as if i ctrl+a in a browser's page and then ctrl+v in a notepad.

I was googled how to strip html string, but didn't find the good result.

Removing tag using regex: "<(.|\n)*?>" causes some problems:

* The html-table is not nicely converted to tabbed plain text. It produces *crazy* table in plain text.

* the html-alternate-image lost

* the list ( <ul> & <ol> ) is not conveted well. No numbering or bullets in plain text

Switch views when opening a form depending on submit locations?



I would like to know it was possible to switch views when opening a form depending on where the form has been submitted.

I am submitting my form to library A and library B and want to be able to open it in view 1 in library A and in view 2 in library B.

Is there a way to set some url conditions in the open behavior rules?

Thanks a lot!

SSRS Report viewer + Remove


I am running the report from SSRS report server in the view i am finding that the window title is Report Viewer - Windows Internet Explorer.

How to remove this name and get the name of the report over there.

I am using java at the back end to call the repot through url.

Please help me .

Thanks ,


How to hide 'no actions' on BDC toolbar


On my BDC list web part, I want the pager feature on the toolbar, but not the 'actions' drop down on the toolbar itself, since it never has any actions in it.

Follow up bonus question, why does that 'Actions' option appear there anyway?  It never has any actions that I can find.

Can you actually assign some sort of action there (as opposed to the line items actions in the web part).



Multiple Submit Connection Problem


Hello everyone,

I have an InfoPath form with two Submit Connections. One of them is a regular submit connection to a SharePoint Document Library. The other is a submit connection to the UpdateListItems web Service.

I have one button using rules that submits the forms fields to the Document Library. Some of those fields have data validation rules like entry must be four digits, and field cannot be blank.

The other submit button uses rules to submit an XML template to the UpdateListItems Template. My problem is that even though this second button does not have the first submit connection as an action, the form will still check all of the forms fields to see if they violate the validation rules before it will submit to the Web Service.

How do I tell InfoPath to ignore the validation rules when I only want to submit to the Web Service? I want the user to be able to enter data into the XML template fields and submit to the Web Service, even if some of the rest of the fields are blank. Right now if any of the other fields fail validation it prevents submittal to the web service even if the fields that failed validation are not being submitted to the web service.

Thanks for any advice that can be offered,
Bill Hurt

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend