Solved

how to call a code behind button_click in jquery

Posted on 2011-03-16
6
550 Views
Last Modified: 2012-06-27
Hi, I opened a Popup using Jquery dialog it contains all asp.net controls [ submit,textbox]

When i click submit on popup no action is performing.....how can i call that action with jQuery

i am beginner..can u explain in detail...if possible with sample code.......
0
Comment
Question by:praveen7k
6 Comments
 
LVL 3

Expert Comment

by:ccwill88
ID: 35153590
you can call the button's click method like :

$("#"+buttonid).click();

where buttonid is your button's id
0
 
LVL 13

Expert Comment

by:agarwalrahul
ID: 35153646
0
 

Author Comment

by:praveen7k
ID: 35153719
thanks for this ...but

let   protected void btnSubmit_Click( Object Sender,Eventargs e)
      {
        // connection to the database
     }
in jquery if i write $("#btnsubmit").Click()---->how it's going to call that btnSubmit_Click action
can u please explain ?? how it works
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 35156676
0
 
LVL 7

Expert Comment

by:foobarr
ID: 35157426
$("#btnsubmit").Click()

this is basically doing the same thing as moving your mouse to the button and performing the button click manually
0
 

Author Closing Comment

by:praveen7k
ID: 35300833
I did not find solution with above
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question