-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathView.aspx
More file actions
48 lines (44 loc) · 5 KB
/
View.aspx
File metadata and controls
48 lines (44 loc) · 5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="View.aspx.cs" Inherits="ViewProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
<asp:DataList ID="DataList1" runat="server" DataKeyField="Id" DataSourceID="SqlDataSource11" OnItemCommand="DataList1_ItemCommand" RepeatColumns="1">
<ItemTemplate>
<asp:Image ID="Image1" runat="server" Height="257px" ImageUrl='<%# Eval("img") %>' Width="742px" />
<br />
<br />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("name") %>'></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server" Text='<%# Eval("desc") %>'></asp:Label>
<br />
<br />
Uploaded By :
<asp:Label ID="Label3" runat="server" Text='<%# Eval("credit") %>'></asp:Label>
<br />
<br />
Downloaded :
<asp:Label ID="Label4" runat="server" Text='<%# Eval("downloaded") %>'></asp:Label>
Times<br />
<br />
Category :
<asp:Label ID="Label5" runat="server" Text='<%# Eval("cat") %>'></asp:Label>
<br />
<br />
<% if(Session["user"]!=null){ %>
<asp:Button ID="Button1" runat="server" CommandArgument='<%# Eval("Id") %>' CommandName="Download" Text="Download" />
<% } %>
<br />
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource11" runat="server" ConnectionString="<%$ ConnectionStrings:pictogramConnectionString %>" SelectCommand="SELECT * FROM [pictures] WHERE ([Id] = @Id)">
<SelectParameters>
<asp:QueryStringParameter Name="Id" QueryStringField="id" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>