Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6049421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:34:31+00:00 2026-05-23T07:34:31+00:00

I know we cannot communicate with sqlserver using jquery directly but I want to

  • 0

I know we cannot communicate with sqlserver using jquery “directly” but I want to know about the indirect method
I am working on a project with the following scenario

  1. a jquery script which is installed in the browser and when it is installed and the user opens a web page and hovers the mouse pointer over an image the script runs to check whether the image has an alternate text or not.If not it will tell the user there is no alternate text and a dialog box will open(which is a div in the html)

  2. the dialog box has
    *textbox
    *cancel button
    *submit button

  3. now, in the submit button’s code I would like the code to send that text into my database.
    I heard somewhere that we can transmit that text (from the textbox as entered by the user) using ajax to an aspx page on my website

But i dont know how
here is some code for convenience to understand the scenario
also there is no Id for the buttons,only classes 🙁

Cancel:
function(){
    $( this ).dialog( "close" );
}

$( "#dialog-form" ).dialog({
    autoOpen: false,
    height: 300,
    width: 350,
    modal: true,
    buttons: {
    "Send your proposal": function() {
    var ID=this.id;
    //alert(ID);
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:34:32+00:00Added an answer on May 23, 2026 at 7:34 am

    ON the aspx page you can add a webMethod like this.

    [WebMethod()]
    public void SAveAltTExt(string text)
    {
        //Save text to db
    }
    

    then you call this with jquery ajax functions like this

    $.ajax({
                            type: "POST",
                            contentType: "application/json; charset=utf-8",
                            data: "{ text: '" + $("[id$='txtTextValue']").val() + "'}",
                            url: "AspxPage.aspx/SAveAltTExt",
                            dataType: "json",
                            success: function (data) {
                              //Do what you want
                            },
                            error: function (xhr, status, error) {
                                //Handle error
                            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that you cannot return anonymous types from methods but I am wondering
I know this is probably really obvious, but I cannot figure out why I
I'm loading reCAPTCHA via JavaScript http://www.google.com/recaptcha/api/js/recaptcha_ajax.js and am using jquery-1.5.2.min.js to communicate with a
I have a project that contains several submodules, that communicate using some objects that
I know you cannot use a alias column in the where clause for T-SQL;
I am storing objects in a buffer. Now I know that I cannot make
I cannot understand the Oracle documentation. :-( Does anybody know how to fetch multiple
I cannot find this in the documentation anywhere. Does anyone know if this is
I know you can specify fieldsets in django for Admin helpers. However, I cannot
I am working on a debian system and have to communicate some processes so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.