Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. </div>
  2.  
  3.  
  4. <script>
  5. $("[id*= ddl_status]").on("change", function () {
  6.  
  7. var status = $(this).val();
  8. $drop = $(this);
  9. $check = $drop.closest().find('[id*= Idtbl_property]');
  10. $id = $check.val();
  11. alert(drop);
  12. $.ajax({
  13. type: "POST",
  14. url: "/webservices/recordStatusChange.asmx/SaveChange",
  15. data: '{propid:' + $id + ',status:' + status + + '}',
  16. contentType: "application/json; charset=utf-8",
  17. dataType: "json",
  18. success: function (response) {
  19. alert("Thank you for providing your input");
  20. $("[id*= ddl_Reason]").hide();
  21. }
  22. }).fail(function (error) {
  23. alert(error.StatusText);
  24. })
  25.  
  26. });
  27. </script>
  28.  
  29. <div class="content">
  30. <asp:GridView ID="gridview_leads" runat="server" CellPadding="3" CellSpacing="1"
  31. Font-Names="Arial" Font-Size="Small" AutoGenerateColumns="False" OnRowUpdating="gridview_leads_RowUpdating">
  32. <Columns>
  33.  
  34. <asp:BoundField DataField="Idtbl_property" HeaderText="Property ID" >
  35. <ItemStyle Font-Size="Small" />
  36. </asp:BoundField>
  37.  
  38. <asp:BoundField DataField="ClientName" HeaderText="Client Name" >
  39. <ItemStyle Font-Size="Small" />
  40. </asp:BoundField>
  41.  
  42. <asp:BoundField DataField="ClientEmail" HeaderText="Client Email" >
  43. <ItemStyle Font-Size="Small" />
  44. </asp:BoundField>
  45.  
  46. <asp:BoundField DataField="ClientCell" HeaderText="Client Cell" >
  47. <ItemStyle Font-Size="Small" />
  48. </asp:BoundField>
  49.  
  50. <asp:TemplateField ShowHeader="True" HeaderText="Status">
  51. <ItemTemplate>
  52. <asp:DropDownList ID="ddl_status" runat="server" OnInit="ddl_status_Init"></asp:DropDownList>
  53. </ItemTemplate>
  54. <ControlStyle Font-Names="Arial" Font-Size="Small" />
  55. <ItemStyle BackColor="#FFFFCC" Font-Names="Calibri" Font-Size="Small" />
  56. </asp:TemplateField>
  57.  
  58.  
  59. </Columns>
  60. </asp:GridView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement