skip to Main Content

Jquery – Ajax Returns MasterPage File In Response Instead Of Return From Method From Current Page

Ajax returns masterpage html instead of returns from my method. Here is my client code: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page1.aspx.cs" Inherits="Page1" MasterPageFile="~/MasterPage.master" EnableEventValidation="false" %> function saveForm() { let formData = new FormData(); formData.append("name", "john"); $.ajax({ type: "POST", url: 'Page1.aspx?method=SaveForm', data:…

VIEW QUESTION

Jquery Timepicker set initial time

I am using jquery timepicker I need set the initial time. let pickip_time = "08:31" if(pickip_time){ pickup_array = pickip_time.split(":"); $('#pickupTime').timepicker({timeFormat:'HH:mm TT',hour:pickup_array[0],minute:pickup_array[1]}); //$('#pickupTime').val(pickip_time); } else { $('#pickupTime').timepicker({timeFormat:'HH:mm TT'}); } Above code does not work. I even tried with below code it…

VIEW QUESTION
Back To Top
Search