<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Ond.master.cs" Inherits="Ond" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<link rel="shortcut icon" type="image/x-icon" href="Images/favicon1.ico" />
<%--rackspace --%>
<%-- <link href="CSS/AdminStyleSheet.css" rel="stylesheet" type="text/css" />
<script src="~/javascript/TinyMCEValidator.js" type="text/javascript"></script>--%>
<link rel="stylesheet" type="text/css" href="CSS/StyleSheet.css" />
<link rel="stylesheet" type="text/css" href="CSS/jquery-ui-1.8.2.custom.css" />
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.2.min.js" type="text/javascript"></script>
<style type="text/css">
.modalPopup {
background-color: #696969;
filter: alpha(opacity=40);
opacity: 0.7;
xindex: -1;
}
</style>
<script type="text/javascript">
$(document).mousemove(function(e)
{
var $targ = $(e.target);
if ($targ.is('#divProd') || $targ.closest('#divProd').length || $targ.is('#divDropProd') || $targ.closest('#divDropProd').length)
{
$("#divDropProd").slideDown(100);
}
else
{
$("#divDropProd").hide();
}
});
</script>
<script type="text/javascript">
$(document).mousemove(function(e)
{
var $targ = $(e.target);
if ($targ.is('#divHelp') || $targ.closest('#divHelp').length || $targ.is('#divDropHelp') || $targ.closest('#divDropHelp').length)
{
$("#divDropHelp").slideDown(100);
}
else
{
$("#divDropHelp").hide();
}
});
</script>
<script type="text/javascript">
$(document).mousemove(function(e)
{
var $targ = $(e.target);
if ($targ.is('#divManager') || $targ.closest('#divManager').length || $targ.is('#divdropOndMaster') || $targ.closest('#divdropOndMaster').length)
{
$("#divdropOndMaster").slideDown(100);
}
else
{
$("#divdropOndMaster").hide();
}
});
</script>
<style type="text/css">
.MenuText a {
color: #cdcdcd;
text-decoration: none;
}
.MenuText a:hover {
color: #fff;
text-decoration: none;
}
</style>
<asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder>
</head>
<%--margin: 0px 0px 0px 0px; --%>
<body style="background-image: url(Images/bg.jpg); background-repeat: repeat;">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<script type="text/javascript">
//
var prm = Sys.WebForms.PageRequestManager.getInstance();
//Raised before processing of an asynchronous postback starts and the postback request is sent to the server.
prm.add_beginRequest(BeginRequestHandler);
// Raised after an asynchronous postback is finished and control has been returned to the browser.
prm.add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args)
{
//Shows the modal popup - the update progress
var popup = $find('<%= modalPopup.ClientID %>');
if (popup != null)
{
popup.show();
}
}
function EndRequestHandler(sender, args)
{
//Hide the modal popup - the update progress
var popup = $find('<%= modalPopup.ClientID %>');
if (popup != null)
{
popup.hide();
}
}
</script>
<div>
<asp:UpdateProgress ID="UpdateProgress" runat="server">
<ProgressTemplate>
<asp:Image ID="Image1" ImageUrl="~/Images/waiting.gif" AlternateText="Processing" runat="server" /> </ProgressTemplate>
</asp:UpdateProgress>
<ajaxToolkit:ModalPopupExtender ID="modalPopup" runat="server" TargetControlID="UpdateProgress" PopupControlID="UpdateProgress" BackgroundCssClass="modalPopup" />
<asp:UpdatePanel ID="pnlData" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table>
<tr>
<td>
<div id="divMain" align="center" style="border: solid 0px red">
<div id="divHeader" style="width: 90%; border: solid 0px red">
<div style="position: relative; border: solid 0px green; width: 0px; height: 0px; z-index: 999">
<div style="width: 960px; border: solid 0px red">
<div id="divLogo" style="float: left; margin-top: 10px; width: 263px; height: 72px"> <img src="Images/Addcompany.jpg" alt="SYW Logo" />
<%-- Pngfix remaining--%>
</div>
<div style="float: right; width: 628px; height: 72px; position: relative; border: solid 0px green; margin-top: 25px">
<div align="right" style="overflow: hidden; width: 623px; height: 25px; border: solid 0px green; padding-right: 5px">
<asp:Label ID="lblUserName" runat="server" CssClass="SelectCategory"></asp:Label><span class="SelectCategory"> | </span>
<asp:Button runat="server" ID="btnLogout" CssClass="SelectCategory" Text="Logout" Style="cursor: pointer;" BackColor="Transparent" BorderStyle="None" />
<%--OnClick="btnLogout_Click"--%>
</div>
</div>
</div>
</div>
<div style="width: 1060px; height: 30px"> </div>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div style="width: 90%; height: 18px"> </div>
</td>
</tr>
<tr>
<td>
<div id="div1" align="center" style="border: solid 0px red">
<div id="div2" style="width: 90%; border: solid 0px red">
<div style="position: relative; border: solid 0px green; height: 0px; z-index: 999">
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal">
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="parent_menu" /> </LevelMenuItemStyles>
<LevelSelectedStyles>
<asp:MenuItemStyle CssClass="child_menu" /> </LevelSelectedStyles>
<DynamicMenuItemStyle CssClass="sub_menu" />
<DynamicHoverStyle CssClass="hover_menu" />
<StaticSelectedStyle CssClass="selected_menu" />
<StaticHoverStyle CssClass="hover_menu" /> </asp:Menu>
</div>
</div>
</div>
</td>
</tr>
</table>
<div style="width: 90%; height: 10px"> </div>
<div id="divBody" style="border: solid 1px #a6a6a6; margin: 0px auto; margin-bottom: 20px; z-index: 0; width: 92%; border: solid 0px red">
<asp:ContentPlaceHolder ID="MainContent" runat="server"> </asp:ContentPlaceHolder>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<%--<script src="../javascript/Admin-JScript.js" type="text/javascript"></script>--%>
</form>
</body>
</html> --Main
<%@ Page Title="" Language="C#" MasterPageFile="~/Ond.master" AutoEventWireup="true" CodeFile="MainContent.aspx.cs" Inherits="MainContent" %>
<%@ Register Src="~/UserControl/UploadFile.ascx" TagPrefix="uc1" TagName="UploadFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div class="SearchOurcategories" style="width: 220px; border: solid 0px red; background-color: #F1F1F1;">
<div style="padding-top: 5px; text-align: center; font-size: 14px;">
<asp:TextBox ID="TxtSearch" runat="server" Height="23px" Width="172px"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" Height="14px" Width="24px" ImageUrl="~/Images/find.png" /> </div>
<div style="width: 220px; height: 8px;"> </div>
<div id="divLeftPanel" runat="server" style="overflow: hidden; border: solid 0px red; width: 220px; background-color: #F1F1F1;">
<div style="height: 480px; overflow-x: hidden; border: solid 0px red">
<div>
<asp:GridView ID="gvLeftPanel" runat="server" AutoGenerateColumns="false" ShowHeader="false" GridLines="None" Width="240px">
<%--OnRowDataBound="gvBrands_RowDataBound"--%>
<Columns>
<asp:TemplateField>
<ItemTemplate>
<div style="width: 200px; overflow: hidden">
<div style="width: 198px; border: solid 0px green">
<div style="overflow: hidden; border: solid 0px red;">
<div style="float: left; padding-top: 12px; padding-left: 10px;">
<%--<a class="SearchRightCatgories" href="<%#CreateLHSLink("brand", DataBinder.Eval(Container.DataItem,"BrandName").ToString(), DataBinder.Eval(Container.DataItem,"BrandID").ToString()) %>"> <img alt="arrow.png" src="Images/arrow.png" style="border: 0px;" /></a>--%> </div>
<div style="height: 30px;">
<div style="float: left; border: solid 0px red; width: 160px; padding-top: 5px; padding-left: 10px;">
<a class="SearchRightCatgories" href="~/MainContent.aspx" title="<%#DataBinder.Eval(Container.DataItem, " FileName ")%>">
<%#DataBinder.Eval(Container.DataItem, "FileName")%>
</a>
</div>
</div>
</div>
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<div align="center">
<asp:Label ID="lblNoBrands" runat="server" CssClass="SearchRightCatgories"></asp:Label>
</div>
</div>
</div>
</div>
</td>
<td>
<div style="width: 1000px; height :520px; vertical-align: top; border: solid 0px red;background-color: #F1F1F1;">
<uc1:UploadFile runat="server" ID="UploadFile" /> </div>
</td>
</tr>
</tbody>
</table>
</asp:Content> usercntrl
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UploadFile.ascx.cs" Inherits="UploadFile" %>
<%--style="border: solid 1px #A6A6A6;"--%>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div class="SearchOurcategories" style="width: 1000px; background-repeat: no-repeat; text-align: right">
<div style="padding-top: 5px; text-align: right; font-size: 14px;">
<asp:TextBox ID="TxtSearch" runat="server" Height="23px" Width="172px"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" Height="14px" Width="24px" ImageUrl="~/Images/find.png" /> </div>
<div style="width: 220px; height: 8px"> </div>
</div>
<div align="center" style="width: 1000px; border: solid 0px red">
<table border="0">
<tr>
<td colspan="3">
<div id="divHeading" align="center" class="Heading" style="margin-top: 40px">
<asp:Label ID="lblUploadHeading" runat="server"></asp:Label>
</div>
</td>
</tr>
<tr>
<td>
<div style="margin: 20px">
<asp:Label ID="lblContainerName" runat="server" Text="Select File Name : " />
<td>
<asp:DropDownList ID="ddlContainerName" runat="server"> </asp:DropDownList>
</td>
</tr>
<tr>
<td>
<div style="margin: 20px">
<asp:Label ID="lblUpload" runat="server" Text="Upload : " />
<td>
<asp:FileUpload ID="fileUpload" AllowMultiple="true" runat="server" />
<td>
<div style="background-image: url(Images/btn-blank.png); width: 98px; height: 30px; background-repeat: no-repeat">
<asp:Button ID="btnUpload" Text="UPLOAD" Width="80px" Height="30px" Style="background-color: Transparent; border-style: none; border-width: 0px; cursor: pointer;font-family: Impact;font-size: 17px;color: #ffffff;" ValidationGroup="vgUpload" runat="server" OnClick="btnUpload_Click" /> </tr>
<tr>
<td>
<div style="margin: 20px">
<asp:RegularExpressionValidator ID="revfupload" runat="server" ErrorMessage="Upload only csv or xls file." ValidationGroup="vgUpload" Display="Dynamic" Font-Size="12px" Font-Names="Arial" ValidationExpression="^.*\.(csv|xls)$" ControlToValidate="fileUpload"> </asp:RegularExpressionValidator>
</div>
<div>
<asp:Label ID="lblError" runat="server" /> </div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode url="" title="" description="">
<siteMapNode url="Default.aspx" title="Home" description="Home Page" />
<siteMapNode url="D.aspx" title="Master" description="Careers Page">
<siteMapNode url="MainContent.aspx" title="dew" description="Jobs Page" /> </siteMapNode>
<siteMapNode url="Help.aspx" title="Help" description="Help Page" /> </siteMapNode>
</siteMap>
*{
padding: 0; margin-left: 0; margin-right: 0; margin-top: 0;
}
.SelectCategory
{
font-family: Arial; font-size: 15px; color: #52555f;
} .buttonText
{
font-family: Impact; font-size: 17px; color: #ffffff;
} .parent_menu
{
/*width: 110px; background-image: url('Images/menu-tab-left.png'); color: #000; text-align: center; height: 30px; margin-right: 5px;*/ /*float: left;*/ width: 110px; background-color: #8B8282; color: #000; text-align: center; height: 30px; margin-right: 5px; border-radius: 5px;
} .child_menu
{
width: 110px; background-color: #000; color: #fff; text-align: center; height: 30px; line-height: 30px; border-radius: 5px;
} .sub_menu
{
width: 110px; background-color: #000; color: #fff; text-align: center; height: 30px; line-height: 30px; margin-top: 5px; border-radius: 5px;
} .selected_menu
{
background-color: #FF6600;
} .hover_menu
{
background-color: #990000; color: #fff;
} .SearchOurcategories
{
color: #000000; font-weight: bold; font-size: 16px; font-family: verdana; background-color: #9b9b9b;
} .SearchRightCatgories
{
color: #787878; text-decoration: none; font-size: 12px;
} .SearchRightOtherCatgories
{
color: #46526c; text-decoration: none; font-size: 12px; font-family: Arial;
} .SearchRightCatgories:hover
{
color: black; text-decoration: none; font-size: 12px;
} .SearchRightCatgoriesOnClick
{
color: black; text-decoration: none; font-size: 12px;
}This code snippet is for upld Screen.