-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewMyPost.aspx
More file actions
47 lines (35 loc) · 1.85 KB
/
Copy pathViewMyPost.aspx
File metadata and controls
47 lines (35 loc) · 1.85 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
<%@ Page Title="" Language="C#" MasterPageFile="~/AboutAuthor.master" AutoEventWireup="true" CodeFile="ViewMyPost.aspx.cs" Inherits="ViewMyPost" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="height: 100%" align="center">
<div align="center" style="height: 36px">
<asp:Label ID="Label2" runat="server" Font-Bold="True"
Font-Names="Times New Roman" Font-Size="Larger" Text="My Posts"></asp:Label>
</div>
<asp:Label ID="lblemailid" runat="server" Visible="False"></asp:Label>
<br /><br />
<br />
<asp:DataList ID="DataList1" runat="server" DataKeyField="Post_ID"
DataSourceID="SqlDataSource1" onitemcommand="DataList1_ItemCommand"
RepeatColumns="3" RepeatDirection="Horizontal" style="margin-bottom: 49px">
<ItemTemplate>
<a href="Blog1.aspx?id=<%# Eval("Post_ID") %>"><asp:Image ID="Image3" runat="server" Height="192px"
ImageUrl='<%# Eval("Image") %>' Width="255px" /></a>
<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" MaxLength="20" ReadOnly="True"
Text='<%# Eval("Post_Content") %>'></asp:TextBox>
<br />
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:CodeSenseBlogConnectionString %>"
SelectCommand="SELECT Post.Post_ID, Post.Post_Content, Post.Image FROM Post INNER JOIN Users ON Post.User_ID = Users.User_ID WHERE (Users.Email_ID = @emailid)">
<SelectParameters>
<asp:ControlParameter ControlID="lblemailid" Name="emailid"
PropertyName="Text" />
</SelectParameters>
</asp:SqlDataSource>
</div>
</asp:Content>