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 7974735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:27:39+00:00 2026-06-04T08:27:39+00:00

Guys I’ve a situation here, I’ve a HTTP handler ( InsertMap.ashx ) to save

  • 0

Guys I’ve a situation here,

I’ve a HTTP handler (InsertMap.ashx) to save the Data to Database (TABLE 1), and I’m calling that method using JQuery as follows

    $('a#AnchSaveData').click(function (e) {
        e.preventDefault();
        $('#mapcodeimage').attr('src', $("#wPaint").wPaint("image"));
        $('#mapcode').val($('#chartdata').html());
        $.post("../InsertMap.ashx", $("form").serialize(), insertCallback);
    });

And I have another C# method (BtnUpdateDiagnosis_Click) to submit the some other values to database (TABLE 2) as follows

protected void BtnUpdateDiagnosis_Click(object sender, EventArgs e)
    {
        if (HfContainer.Value != null)
        {
            ObjPatient.UpdateDiagnosis(TxtChiefComplaints.Text.Trim(), TxtFindings.Text.Trim(), TxtPrecaution.Text.Trim(), TxtDiagnosis.Text.Trim(), TxtManagementPlan.Text.Trim(), Request.Cookies["UserID"].Value, HfContainer.Value, DdlTherapist.SelectedValue);
            Diagnosis();
        }
        else
        {
            Response.Redirect(ObjFunction.GetSeoSpecificURL("RegisterPatient"));
        }
    }

What I need is, I need to Include both these methods in a Single CLICK event, either C# Button OnClick, or JQuery Click()

How to Combine these two? Please help me

  • 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-06-04T08:27:41+00:00Added an answer on June 4, 2026 at 8:27 am

    jQuery is running in the browser, C# is running on the server. To combine these together, you need to pick whether it’ll all happen from the browser or from the server, and then move the rest of the parameters there. Since you have variables called “Diagnosis” and “Patient” that likely have other scary words attached like HIPAA and PCI, I’d say you probably want to get the jQuery to populate form variables, and let the button click harvest those details and forward it onto the ashx to avoid leaking data into the browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

guys, I have the problem when copying database from local assets folder to /data/data/package_name/databases
Guys I've a Situation here.. I've Developed a Website using C# .Net framework 4.0,
guys. I have two view controllers with two uiwebviews. Here is my code: First
Guys that is code copied from a book (Programming Windows 5th edition): #include <windows.h>
Guys, I am using dynamic programming approach to solve a problem. Here is a
Guys i have stored a null value in the column of sqlite database the
guys i got a php file that use it as xml for a flash
Guys, Can you please tell me that ,I wants to learn Azure , by
Guys, I have a CSS Layout that I am using that has a header,
Guys, I have the following code that is inside a big while loop that

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.