Solved

how to call a code behind button_click in jquery

Posted on 2011-03-16
6
547 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

929 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

14 Experts available now in Live!

Get 1:1 Help Now