Guest User

Untitled

a guest
Jan 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 KB | None | 0 0
  1. <asp:UpdatePanel
  2. ID="UpdatePanelParentsSummary"
  3. runat="server"
  4. UpdateMode="Conditional">
  5.  
  6. <ContentTemplate>
  7. <asp:DetailsView
  8. ID="DetailsViewParentsDetails"
  9. runat="server"
  10. Height="50px"
  11. Width="404px"
  12. AutoGenerateRows="False">
  13.  
  14. <Fields>
  15. <asp:TemplateField ShowHeader="False">
  16.  
  17. <ItemTemplate>
  18. <asp:Button
  19. ID="ButtonEdit"
  20. runat="server"
  21. CausesValidation="False"
  22. CommandName="Edit"
  23. Text="Edit" />
  24.  
  25. &nbsp;
  26. <asp:Button
  27. ID="ButtonNew"
  28. runat="server"
  29. CausesValidation="False"
  30. CommandName="New"
  31. Text="New" />
  32.  
  33. &nbsp;
  34. <asp:Button
  35. ID="ButtonDelete"
  36. runat="server"
  37. CausesValidation="False"
  38. CommandName="Delete"
  39. Text="Delete" />
  40.  
  41. <AjaxToolKit:ConfirmButtonExtender ID="deleteButtonConfirmation"
  42. runat="server"
  43. ConfirmText='<%# "You are about to remove: " & vbcr &
  44. Eval("FatherName") & vbcr & Eval("MotherName") & "!!!" &
  45. vbcrlf & "Are you sure you want to do this?" & vbcrlf &
  46. "Clicking the OK button will delete this parent." %>'
  47. Enabled="True"
  48. TargetControlID="ButtonDelete">
  49.  
  50. </AjaxToolKit:ConfirmButtonExtender>
  51. </ItemTemplate>
  52.  
  53. <EditItemTemplate>
  54. <asp:Button
  55. ID="ButtonUpdate"
  56. runat="server"
  57. CausesValidation="True"
  58. CommandName="Update"
  59. Text="Update" />
  60.  
  61. &nbsp;
  62. <asp:Button
  63. ID="ButtonCancelUpdates"
  64. runat="server"
  65. CausesValidation="False"
  66. CommandName="Cancel"
  67. Text="Cancel" />
  68. </EditItemTemplate>
  69.  
  70. <InsertItemTemplate>
  71. <asp:Button
  72. ID="ButtonInsert"
  73. runat="server"
  74. CausesValidation="True"
  75. CommandName="Insert"
  76. Text="Insert" />
  77.  
  78. &nbsp;
  79. <asp:Button
  80. ID="ButtonCancelInsert"
  81. runat="server"
  82. CausesValidation="False"
  83. CommandName="Cancel"
  84. Text="Cancel" />
  85. </InsertItemTemplate>
  86.  
  87. </asp:TemplateField>
  88.  
  89. <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False"
  90. ReadOnly="True" SortExpression="ID" Visible="False" />
  91.  
  92. <asp:BoundField
  93. DataField="FatherName"
  94. HeaderText="Father's Name:">
  95.  
  96. <ItemStyle ForeColor="Blue" />
  97. </asp:BoundField>
  98.  
  99. <asp:BoundField
  100. DataField="MotherName"
  101. HeaderText="Mother's Name:">
  102.  
  103. <ItemStyle ForeColor="Blue" />
  104. </asp:BoundField>
  105.  
  106. <asp:BoundField
  107. DataField="FatherOccupation"
  108. HeaderText="Father's Occupation:">
  109.  
  110. <ItemStyle ForeColor="Blue" />
  111. </asp:BoundField>
  112.  
  113. <asp:BoundField
  114. DataField="FatherEmploymentPlace"
  115. HeaderText="Father's Employment Place:">
  116.  
  117. <ItemStyle ForeColor="Blue" />
  118. </asp:BoundField>
  119.  
  120. <asp:BoundField
  121. DataField="FatherWorkPhone"
  122. HeaderText="Father's Work Phone:">
  123.  
  124. <ItemStyle ForeColor="Blue" />
  125. </asp:BoundField>
  126.  
  127. </Fields>
  128.  
  129. <HeaderTemplate>
  130. <%#IIf(Eval("FatherName") = Nothing,
  131. "Adding New Student", "Details For: " & Eval("FatherName") & " *** " & Eval("MotherName"))%>
  132. </HeaderTemplate>
  133. </asp:DetailsView>
  134. </ContentTemplate>
  135. </asp:UpdatePanel>
Add Comment
Please, Sign In to add comment