Solved

how to call a code behind button_click in jquery

Posted on 2011-03-16
6
546 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now