Hi,
This is my source Code can you please tell me how to do...?
HTML encoder i never use...
Source Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Resource1.aspx.cs"
Inherits="DMS_Resource1" Title="Resource" MasterPageFile=""%>
<%@ Register Src="../CommonControls/MsgBox.ascx" TagName="MsgBox" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="Server">
<link href="../STYLES/LNTStyle.css" rel="stylesheet" type="text/css" />
<uc1:MsgBox ID="Msgbox1" runat="server" />
<table cellpadding="2" cellspacing="2" width="100%" align="center" border="0">
<tr>
<td align="right" valign="top" style="width: 30%; height: 5%">
<table width="28%" height="100%">
<tr valign="middle" style="height: 25%" align="right">
<td style="height: 21%">
<table border="1" cellpadding="0" cellspacing="0" class="TextVerdanaNavy8" width="100%">
<tr>
<td colspan="2" align="center">
Legend
</td>
</tr>
<tr>
<td class="tit" align="left" width="70%">
Drawings Uploaded
</td>
<td align="right" style="background-color:PaleGreen ">
</td>
</tr>
<tr>
<td class="tit" align="left" width="70%">
Advanced Drawings
</td>
<td align="right" style="background-color:Gainsboro ">
</td>
</tr>
<tr>
<td class="tit" align="left" width="70%">
Pending for Drawing Upload
</td>
<td align="right" style="background-color: LightYellow">
</td>
</tr>
<tr>
<td class="tit" align="left" width="70%">
Pending for Drawing upload After 15 day's
</td>
<td align="right" style="background-color:LightSalmon ">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="2" cellspacing="2" width="100%" align="center" border="0">
<tr>
<td align="center" width="100%" valign="top">
<asp:DataGrid ID="gdDocument" runat="server" AutoGenerateColumns="False" BorderColor="Black"
BorderStyle="Solid" BorderWidth="1px" CellPadding="2" CssClass="ArialNarrow"
GridLines="Vertical" Width="100%"
OnItemDataBound="gdDocument_ItemDataBound" AllowPaging="True"
onpageindexchanged="gdDocument_PageIndexChanged" PageSize="50" >
<PagerStyle HorizontalAlign="center" Mode="NumericPages"
PageButtonCount="10" />
<SelectedItemStyle BackColor="White" ForeColor="White" />
<AlternatingItemStyle BackColor="AliceBlue" HorizontalAlign="Left" />
<ItemStyle BackColor="White" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" />
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Top" BackColor="#000084" ForeColor="White"
Font-Bold="True" />
<Columns>
<asp:TemplateColumn HeaderText="Drg/Doc No." ItemStyle-Wrap="false">
<ItemTemplate>
<asp:Label ID="lblDwg_No" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Doc_No") %>'></asp:Label>
<asp:Label ID="lblDrawing" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Doc_Id") %>'></asp:Label>
</ItemTemplate>
<ItemStyle Wrap="False"></ItemStyle>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Functional Unit">
<ItemTemplate>
<asp:Label ID="lblFunctional_Unit" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FunctionalUnit") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Title/Description">
<ItemTemplate>
<asp:Label ID="lblTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Revision No">
<ItemTemplate>
<asp:Label ID="lblApproval" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Approval_Date","{0:dd-MMM-yyyy}") %>' Visible="false"></asp:Label>
<asp:Label ID="lblRev" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Dwg_Rev_No") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Size">
<ItemTemplate>
<asp:Label ID="lblSize" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Dwg_Size_Desc") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:LinkButton ID="btnEdit" CommandName="Edit" runat="server" Text="Upload" ToolTip="Upload Drawing"
CausesValidation="false" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</td>
</tr>
</table>
</asp:Content>
--------------------------------------------------------------------------------
Give respect to your work, Instead of trying to impress your boss.
N@veen
Blog : http://naveens-dotnet.blogspot.in/