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

  • Home
  • SEARCH
  • 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 8801767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:55:07+00:00 2026-06-14T00:55:07+00:00

I am using Jqgrid. I want to display Delete msg according to server Response

  • 0

I am using Jqgrid. I want to display Delete msg according to server Response .
but as i am using response.responsText i am getting full HTML page Content.. help me

afterComplete: function(response,postdata,formid) {
    alert("'"+response.responseText+"'")
}
DataTable dr = new DataTable();
da.SelectCommand = new SqlCommand("select * from CustomerOrders where QuotationID='" + ID + "'", conn);
conn.Open();
da.SelectCommand.ExecuteNonQuery();
da.Fill(dr);
conn.Close();

if (dr.Rows.Count > 0)
{
    Response.Write("dddd");
}                     
else
{
    da.DeleteCommand = new SqlCommand("delete from QuotationTemplates where QuotationID='" + ID + "'", conn);
    conn.Open();
    da.DeleteCommand.ExecuteNonQuery();
    conn.Close();
    da.DeleteCommand = new SqlCommand("delete from Quotations where ID ='" + ID + "'", conn);
    conn.Open();
    da.DeleteCommand.ExecuteNonQuery();
    conn.Close();
    Response.Write("nave");
}
  • 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-14T00:55:08+00:00Added an answer on June 14, 2026 at 12:55 am

    It would be helpful to know which one ASP.NET technology you use. For example you can use ASHX to return any type of data which you need.

    In general Response.Write append information to the response. You can use Response.ClearContent (or Response.Clear) or Response.ClearHeaders to clear the current response. Moreover you can consider to set Response.ContentType to change the default "text/html" value to any other value like "text/plain" for example.

    You can use Fiddler, Firebug or “Network” tab of Developer Tools of Internet Explorer (press F12 to start) or Google Chrome to trace the HTTP traffic between jqGrid and the your Server.

    You can use additionally ajaxDelOptions Ajax options like ajaxDelOptions: {dataType: "text"}, but I think it’s not really required to solve your problem. I suppose that the origin of the problem is on the server side only (in your ASP.NET application).

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

Sidebar

Related Questions

I'm using jqgrid to display a list of sites and I want to do
OK, I am using jqgrid to only display a subset of information. I want
i m using jqgrid with mvc 3, I want to add Edit and Delete
I'm using jqGrid and I have a problem getting Dynamic Linq to work. I
I am using jqgrid and I like to display custom message while deleting a
I am using jqGrid ( http://www.trirand.com/blog/ ) to display some read-only data. The resizeable
i am using jqGrid treegrid and i want to format the back color of
I'm using jqgrid for which I create column definitions on server as dynamic objects
I want to add an event handler to jqGrid (for the onSelectRow event) but
hi i am using jqgrid and want to do something like if i set

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.