<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Articaledit.aspx.cs" Inherits="Admin_Articaledite" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
$(document).ready(function () {
$('a#popup').live('click', function (e) {
var page = $(this).attr("href")
var $dialog = $('<div></div>')
.html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>')
.dialog({
autoOpen: false,
modal: true,
height: 450,
width: 'auto',
title: "Edit Artical",
buttons: {
"Close": function () { $dialog.dialog('close'); }
},
close: function (event, ui) {
__doPostBack('<%= btnRefresh.ClientID %>', '');
}
});
$dialog.dialog('open');
e.preventDefault();
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="DivContent">
<aside class="right-side">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Main Slider
<small>Artical edit</small>
</h1>
<form id="form1" runat="server">
<h1>Edit Artical</h1>
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<img src="Loading.gif" alt="" />
</ProgressTemplate>
</asp:UpdateProgress>
<asp:DropDownList ID="ddlatrical" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlatrical_SelectedIndexChanged" >
<asp:ListItem Value="1">Arabic</asp:ListItem>
<asp:ListItem Value="2">English</asp:ListItem>
</asp:DropDownList>
<br />
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional" >
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" Width = "900px"
AutoGenerateColumns = "False" Font-Names = "Arial"
Font-Size = "11pt" AlternatingRowStyle-BackColor = "#367fa9"
HeaderStyle-BackColor = "#99ccff" AllowPaging ="True"
OnPageIndexChanging = "OnPaging"
CellPadding="6" ForeColor="#333333" GridLines="None" >
<Columns>
<%-- row pdf_name --%>
<asp:TemplateField ItemStyle-Width = "200px" HeaderText = "Artical title">
<ItemTemplate>
<asp:Label ID="lblBookName" runat="server" class="text-center"
Text='<%# Eval("Ar_Wtitle")%>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtBookName" runat="server"
Text='<%# Eval("Ar_Wtitle")%>'></asp:TextBox>
</EditItemTemplate>
<ItemStyle Width="200px" />
</asp:TemplateField>
<%-- row pdf_date --%>
<asp:TemplateField ItemStyle-Width = "200px" HeaderText = "Read More">
<asp:Label ID="lblbookdate" runat="server"
Text='<%# Eval("WReadMore")%>'></asp:Label>
<asp:TextBox ID="txtbookdate" runat="server"
Text='<%# Eval("WReadMore")%>'></asp:TextBox>
<asp:TemplateField HeaderText="ID">
<ItemTemplate >
<a id="popup" href='EditArtical.aspx?id=<%# Eval("id") %>' >edit</a>
<asp:TemplateField>
<asp:LinkButton ID="lnkRemove" runat="server"
CommandArgument = '<%# Eval("id")%>'
OnClientClick = "return confirm('Do you want to delete?')"
Text = "Delete" OnClick = "Deletepdfbook"></asp:LinkButton>
</Columns>
<AlternatingRowStyle BackColor="White" />
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
<SortedDescendingHeaderStyle BackColor="#4870BE" />
</asp:GridView>
<asp:Button ID="btnRefresh" Text="refresh" runat="server" style="display:none"
onclick="btnRefresh_Click" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
</form>
</section>
<!-- Main content -->
<!-- /.content -->
</aside>
and this is my master page head