0% found this document useful (0 votes)
16 views1 page

ViewRequest Aspx

The document configures a data table to display request information from a database. The data table is initialized and styled using JavaScript and contains columns for the request number, requirement details, and an add button.

Uploaded by

noni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

ViewRequest Aspx

The document configures a data table to display request information from a database. The data table is initialized and styled using JavaScript and contains columns for the request number, requirement details, and an add button.

Uploaded by

noni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.

master"
AutoEventWireup="true"
CodeFile="ViewRequest.aspx.cs" Inherits="ViewRequest" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="Server">
<h2>
Data Tables</h2>
<br />
<script type="text/javascript">
jQuery(document).ready(function ($) {
var $table1 = jQuery('#table-1');

// Initialize DataTable
$table1.DataTable({
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"bStateSave": true
});

// Initalize Select Dropdown after DataTables is created


$table1.closest('.dataTables_wrapper').find('select').select2({
minimumResultsForSearch: -1
});
});
</script>
<asp:GridView ID="GrdRequestView" class="table table-bordered datatable"
runat="server"
AutoGenerateColumns="false">
<Columns>
<asp:TemplateField HeaderText="Req #">
<ItemTemplate>
<asp:Label ID="lbl_tbl_Req" runat="server" Text='<%# Eval("Req
#") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Requirement">
<ItemTemplate>
<asp:Label ID="lbl_tbl_Req" runat="server" Text='<%#
Eval("Requirement") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Add">
<ItemTemplate>
<asp:LinkButton ID="lbtn_addButton"
runat="server">Add</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</asp:Content>

You might also like