Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:DataList ID="DataList1" runat="server" DataKeyField="AppId" DataSourceID="TestDB" RepeatColumns="1">
- <ItemTemplate>
- AppId:
- <asp:Label ID="AppIdLabel" runat="server" Text='<%# Eval("AppId") %>' />
- <br />
- ToonName:
- <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
- <br />
- AppStatus:
- <asp:Label ID="AppStatusLabel" runat="server" Text='<%# Eval("AppStatus") %>' />
- <br />
- <br />
- </ItemTemplate>
- </asp:DataList>
- <asp:SqlDataSource ID="TestDB" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [Applications] WHERE ([AppId] = @AppId)">
- <SelectParameters>
- <asp:QueryStringParameter Name="AppId" QueryStringField="btnView" Type="Int32" />
- </SelectParameters>
- </asp:SqlDataSource>
- <form>
- <div id="grid">
- @grid.GetHtml(
- tableStyle : "grid",
- alternatingRowStyle : "alt",
- headerStyle : "header",
- columns: grid.Columns(
- grid.Column("AppId", "Action", format: @<text>
- <button type="submit" class="view-app" id="@item.AppId" name="btnView" value="@item.AppId">View</button>
- <button type="submit" class="approve-app" id="@item.AppId" name="btnApprove" value="@item.AppId">Approve</button>
- <button type="submit" class="deny-app" id="@item.AppId" name="btnDeny" value="@item.AppId">Deny</button>
- <button type="submit" class="delete-app" id="@item.AppId" name="btnDelete" value ="@item.AppId">Delete</button>
- </text>),
- grid.Column("Name", "Name"),
- grid.Column("AppDate", "AppDate"),
- grid.Column("AppStatus", "Status")
- )
- )
- </div>
- </form>
- <br />
- <fieldset>
- <legend>Applicant Answers</legend>
- <iframe id="ff" width="100%" height="50px" frameborder="0" scroll="yes" src="Applicant.aspx"></iframe>
- </fieldset>
- <fieldset>
- <legend>Applicant Answers</legend>
- <script type="text/javascript">
- function ShowDetail(appId) {
- document.getElementById("ff").src ="Applicant.aspx?AppId=" + appId;};
- </script>
- <iframe id="ff" width="300" height="300"></iframe>
- </fieldset>
- <button type="button" onclick="ShowDetail(this.value)" class="view-app" id="@item.AppId" name="btnView" value="@item.AppId">View</button>
- <script type="text/javascript">
- function ShowDetail(appId) {
- document.getElementById("ff").src = "Applicant.aspx?AppId=" + appId;
- }
- </script>
- ....
- <button type="button" onclick="ShowDetail(this.value)" class="view-app" id="@item.AppId" name="btnView" value="@item.AppId">View</button>
- ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement