-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage_news.aspx
85 lines (80 loc) · 4.29 KB
/
manage_news.aspx
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="manage_news.aspx.cs" Inherits="Default2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Literal ID="Literal5" runat="server" Text="Enter Tag Name :" ></asp:Literal>
<asp:TextBox ID="TextBox4" runat="server" class="form-control form-control-user" placeholder="Enter Tag..."></asp:TextBox>
<asp:Literal ID="Literal6" runat="server" Text="Enter Title :"></asp:Literal>
<asp:TextBox ID="TextBox5" class="form-control form-control-user" placeholder="Enter Title..." runat="server"></asp:TextBox>
<asp:Literal ID="Literal10" runat="server" Text="Enter Writer Name:"></asp:Literal>
<br />
<asp:TextBox ID="TextBox6" runat="server" class="form-control form-control-user" placeholder="Enter Writer Name..." ></asp:TextBox>
<asp:Literal ID="Literal11" runat="server" Text="Add Writer Image:"></asp:Literal>
<br />
<asp:FileUpload ID="FileUpload2" class="form-control form-control-user" runat="server" />
<asp:Image ID="Image5" runat="server" Height="92px" Width="96px"/>
<br />
<asp:Literal ID="Literal7" runat="server" Text="Add News Image :"></asp:Literal>
<br />
<asp:FileUpload ID="FileUpload1" class="form-control form-control-user" runat="server" />
<asp:Image ID="Image2" runat="server" Height="92px" Width="96px" />
<br />
<asp:Literal ID="Literal8" runat="server" Text="Status :"></asp:Literal>
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem Value="1">Active</asp:ListItem>
<asp:ListItem Value="0">Deactive</asp:ListItem>
</asp:RadioButtonList>
<br />
<asp:Button ID="Button1" runat="server" Text="Submit"
class="btn btn-success" onclick="Button1_Click" />
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
Width="725px">
<Columns>
<asp:TemplateField HeaderText="ID">
<ItemTemplate>
<asp:Literal ID="Literal1" runat="server" Text='<%# Eval("id") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="TAG ">
<ItemTemplate>
<asp:Literal ID="Literal2" runat="server" Text='<%# Eval("tag") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="NEWS_TITLE">
<ItemTemplate>
<asp:Literal ID="Literal3" runat="server" Text='<%# Eval("title") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="WRITER_NAME">
<ItemTemplate>
<asp:Literal ID="Literal12" runat="server" Text='<%# Eval("writer_name") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="NEWS_IMAGE">
<ItemTemplate>
<asp:Image ID="Image3" runat="server" Height="81px" Width="78px"
ImageUrl='<%# Eval("writer_image", "~/news_images/{0}") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="WRITER_IMAGE">
<ItemTemplate>
<asp:Image ID="Image4" runat="server" Height="81px" Width="78px"
ImageUrl='<%# Eval("news_image", "~/news_images/{0}") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ACTION">
<ItemTemplate>
<asp:Button ID="Button2" runat="server" Text="EDIT"
class="btn btn-primary create-new-button" onclick="Button2_Click"
CommandArgument='<%# Eval("id") %>' />
<asp:Button ID="Button3" runat="server" Text="DELETE"
class="btn btn-danger create-new-button" onclick="Button3_Click"
CommandArgument='<%# Eval("id") %>'/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<br />
<br />
</asp:Content>