Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to call a code behind button_click in jquery

Posted on 2011-03-16
6
Medium Priority
?
555 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
 

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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 82

Accepted Solution

by:
leakim971 earned 1500 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
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…
Suggested Courses

971 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