I am loading multiple grid view in multiple tab on page load ,there are 11 grid view which causing latency issue.
can you please tell me is there any another option to reduce latency, i am not able store that in session also because all the data was updating every time
<div id="tabs-1">
<div id="div_created" style="overflow-x: hidden; overflow-y: auto; height: 400px" runat="server">
<asp:GridView ID="grd_created" runat="server"
<%--*************--%>>
</asp:GridView>
</div>
</div>
<div id="tabs-2">
<div id="div_inprocess" style="overflow-x: hidden; overflow-y: auto; height: 400px" runat="server">
<asp:GridView ID="grd_inprocess" runat="server"
<%--*************--%>>
</asp:GridView>
</div>
</div>
<%--*************--%>
<%--*************--%>
<div id="tabs-11">
<div id="div1" style="overflow-x: hidden; overflow-y: auto; height: 400px" runat="server">
<asp:GridView ID="GridView1" runat="server"
<%--*************--%>>
</asp:GridView>
</div>
</div>
<ul class="tabs" data-persist="true">
<li runat="server" id="li_create" onclick="doAdelay()"><a href="#tabs-1">Created
<asp:Label ID="lblCreatedCount" runat="server"></asp:Label></a></li>
<li runat="server" id="li_proc" onclick="doAdelay()"><a href="#tabs-2">In Process
<asp:Label ID="lblInprocessCount" runat="server"></asp:Label></a></li>
<li runat="server" id="li_hold">On Hold<asp:Label ID="lblonholdCount" runat="server"></asp:Label></li>
<li runat="server" id="li_comp">Completed<asp:Label ID="lblcompltedCount" runat="server"></asp:Label></li>
<li runat="server" id="li_fianl">Finalized<asp:Label ID="lblFinalizedCount" runat="server"></asp:Label></li>
<li runat="server" id="li_custom" visible="false"><a href="#tabs-6" runat="server"
id="ViewCustom">Custom</a></li>
<li runat="server" id="li_all">All<asp:Label ID="lblAllcount" runat="server"></asp:Label></li>
<li runat="server" id="li_SrchRslt" class="clssearch" visible="false"><a href="#tabs-8" runat="server"
id="SrchRslt">Search Result<asp:Label ID="lblSearchcount" runat="server"></asp:Label></a></li>
<li runat="server" id="li_CR" visible="false">In Rebuttal<asp:Label ID="lblCodeRebuttal" runat="server"></asp:Label></li>
<li runat="server" id="li_RR" visible="false"><a href="#tabs-10" runat="server"
id="A1">Review Records<asp:Label ID="lblreviewrecords" runat="server"></asp:Label></a></li>
<li runat="server" id="li_SA" visible="false"><a href="#tabs-11" runat="server"
id="A2">
<asp:Label ID="lbltabSTA" runat="server" Text="Sent to Auditor"></asp:Label><asp:Label ID="lblSA" runat="server"></asp:Label></a></li>
<li runat="server" id="li_PRS" visible="false"><a href="#tabs-12" runat="server"
id="A3">Peer Review<asp:Label ID="lblpeerreviewS" runat="server"></asp:Label></a></li>
</ul>
Related
.aspx code
<asp:Timer ID="timer" Interval="3000" runat="server" OnTick="Timer1_Tick">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanel3" runat="server" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="timer" EventName="Tick" />
</Triggers>
<ContentTemplate>
<div class="row-fluid">
<ul class="ov_boxes">
<li class="blue">
<div class="p_bar_up">
<span style="display: none;">2,4,9,7,12,8,16</span>
</div>
<div class="ov_text">
Total <strong><a href="../Reports/GetAllEmployeeReport.aspx" target="_blank">
<asp:Label Style="color: White;" ID="lblTotal" runat="server"></asp:Label></a>
</strong>
<% Response.Write(ToDateString(System.DateTime.Now.ToString())); %>
</div>
</li>
</ul>
<ul class="ov_boxes">
<li class="pink">
<div class="p_bar_down">
<span style="display: none;">20,15,18,14,10,13,9,7</span>
</div>
<div class="ov_text">
Total IN <strong><a href="../Reports/InEmployeeReport.aspx" target="_blank">
<asp:Label Style="color: White;" ID="lblInEmp" runat="server"></asp:Label></a>
</strong>
<% Response.Write(ToDateString(System.DateTime.Now.ToString())); %>
</div>
</li>
</ul>
<ul class="ov_boxes">
<li class="grey">
<div class="p_line_up">
</div>
<div class="ov_text">
Total OUT<strong><a href="../Reports/OutEmployeeReport.aspx" target="_blank">
<asp:Label Style="color: White;" ID="lblTotal" runat="server"></asp:Label></a>
</strong>
<% Response.Write(ToDateString(System.DateTime.Now.ToString())); %>
</div>
</li>
</ul>
</div>
</ContentTemplate>
</asp:UpdatePanel>
and code behind is
protected void Timer1_Tick(object sender, EventArgs e)
{
GetTodayInOutData();
UpdatePanel3.Update();
}
private void GetTodayInOutData()
{
try
{
var objEmployeeBAL = new EmployeeBAL();
Entity.Employee objEmployee = new Entity.Employee();
DataSet ds = objEmployeeBAL.GetRealtimeData();
DataSet ds1 = objEmployeeBAL.GetRealtimeOutData();
DataSet ds2 = objEmployeeBAL.GetRealtimeInData();
if (ds.Tables[0].Rows.Count > 0)
{
lblTotal.Text = ds.Tables[0].Rows[0]["Total"].ToString();
}
}
catch (Exception)
{
throw;
}
}
GetTodayInOutData() method is called after every 3 second and get the correct value but lblTotal displays old value means it's not updating. I can not find what is the wrong in this. Any help would be appreciated. Thanks.
Set AutoPostBack true for Label lblTotal and also set UpdateMode property to Conditional:
<asp:Label Style="color: White;" AutoPostBack="true" UpdateMode="Conditional" ID="lblTotal" runat="server"></asp:Label>
I have on ListView
<asp:ListView ID="MyListView" runat="server">
<LayoutTemplate>
<ul class="menu">
<li><i></i>home</li>
<li runat="server" />
<li class="myClass">
<a title="SomeTitle" href="example.com/default.aspx">
</a>
</li>
</ul>
<ascx:Menu runat="server" Visible="true" />
</LayoutTemplate>
<ItemTemplate>
<li>
<asp:HyperLink runat="server" NavigateUrl='<%# Eval("URL") %>'
Text='<%# Eval("Title") %>'/></li>
</ItemTemplate>
<SelectedItemTemplate>
<li class="active">
<asp:HyperLink runat="server" NavigateUrl='<%# Eval("URL") %>'
Text='<%# Eval("Title") %>' /></li>
</SelectedItemTemplate>
</asp:ListView>
on .cs file I have one string
protected string CurrentName = MyMethod();//that return a string or null
in aspx page I want to show in <LayoutTemplate> different structure of tags in dependecy of my CurrentName
I try like this:
<% if(this.CurrentName ==null){ %>
<ul class="menu">
<li><i></i>home</li>
<li runat="server" />
<li class="myClass">
<a title="SomeTitle" href="example.com/default.aspx">
</a>
</li>
</ul>
<ascx:Menu runat="server" Visible="true" />
<% } else { %>
<ul class="menu">
<li><i></i>home</li>
<li class="myClass">
<ascx:Menu runat="server" Visible="true" />
</li>
</ul>
<% } %>
this method not work, how use IF statements in ASPX page right?
I would implement this with two panels which have exlusive conditions on Visible attribute, so that only one of them is rendered at a single load:
<asp:Panel runat="server" Visible='<%# this.CurrentName == null %>'>
<ul class="menu">
<li><i></i>home</li>
<li runat="server" />
<li class="myClass">
<a title="SomeTitle" href="example.com/default.aspx">
</a>
</li>
</ul>
<ascx:Menu runat="server" Visible="true" />
</asp:Panel>
<asp:Panel runat="server" Visible='<%# this.CurrentName != null %>'>
<ul class="menu">
<li><i></i>home</li>
<li class="myClass">
<ascx:Menu runat="server" Visible="true" />
</li>
</ul>
</asp:Panel>
I have a page where I am using 3 update panels and all the update panels are working well. In one of the update panels, I have a button which on click changes label text but the problem is that on if post back happens in any of the update panels file upload loses its file.
All the update panels are used to update separate sections of page. No update panel is nested. The file upload is outside; it is not in any of the update panels but it is still losing its file.
<%# Control Language="C#" AutoEventWireup="true" CodeFile="WalkInControl.ascx.cs"
Inherits="Modules_WalkInControl" %>
<%# Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
<asp:Panel ID="Panel1" runat="server" Font-Size="13px" Width="670">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers ="true" UpdateMode="Conditional">
<ContentTemplate>
<div class="formfieldset" style="margin-bottom: 40px;">
<div class="formrow">
<div class="paymentfrmlabels">
Check In :</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtCheckIn" runat="server" Width="153px"></asp:TextBox>
<asp:ImageButton ID="imgbtnCalendar1" runat="server" ImageUrl="~/App_Themes/Default/images/ico-calendar.gif"
CausesValidation="false" Width="20" Height="20" />
<ajaxtoolkit:CalendarExtender ID="CalendarExtender2" runat="server" Format="dd/MM/yyyy"
TargetControlID="txtCheckIn" PopupButtonID="imgbtnCalendar1" />
</div>
<div class="paymentfrmvalidation">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="[*]"
ControlToValidate="txtCheckIn" Display="Dynamic" ValidationGroup="a"></asp:RequiredFieldValidator>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Check Out:
</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtCheckOut" runat="server" Width="153px"></asp:TextBox>
<asp:ImageButton ID="imgbtnCalendar" runat="server" ImageUrl="~/App_Themes/Default/images/ico-calendar.gif"
CausesValidation="false" ImageAlign="Top" Width="20" Height="20" />
<ajaxtoolkit:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MM/yyyy"
TargetControlID="txtCheckOut" PopupButtonID="imgbtnCalendar" />
</div>
<div class="paymentfrmvalidation">
<asp:RequiredFieldValidator ID="valStartDate" runat="server" ErrorMessage="[*]" ControlToValidate="txtCheckOut"
Display="Dynamic" ValidationGroup="a"></asp:RequiredFieldValidator>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Room Type :
</div>
<div class="paymentfrmtxtbox">
<asp:DropDownList ID="drpRoomtype" runat="server" Width="172px" AutoPostBack="True"
OnSelectedIndexChanged="drpRoomtype_SelectedIndexChanged" AppendDataBoundItems="True">
</asp:DropDownList>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Plan :
</div>
<div class="paymentfrmtxtbox" style="height: 25px;">
<asp:DropDownList ID="drpPlan" Width="172px" AutoPostBack="True"
runat="server" onselectedindexchanged="drpPlan_SelectedIndexChanged1">
</asp:DropDownList>
</div>
</div>
<div class="formrow" style="height: 75px;">
<div class="paymentfrmlabels">
Room :
</div>
<div class="paymentfrmtxtbox">
<asp:ListBox ID="lstRooms" runat="server" Width="172px" SelectionMode="Multiple">
</asp:ListBox>
</div>
<div class="paymentfrmvalidation">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="lstRooms"
ErrorMessage="[*]" ValidationGroup="b"></asp:RequiredFieldValidator>
</div>
<div class="paymentfrmvalidation">
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<img src="../Images/loading_sm.gif" border="0" alt="">
</ProgressTemplate>
</asp:UpdateProgress>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="drpRoomtype"
ErrorMessage="[*]" ValidationGroup="a"></asp:RequiredFieldValidator>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Adults :
</div>
<div class="paymentfrmtxtbox" style="width: 50px; height: 25px;">
<asp:DropDownList ID="drpAdults" Width="50px" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="drpAdults_SelectedIndexChanged" AppendDataBoundItems="True">
</asp:DropDownList>
</div>
<div class="paymentfrmlabels" style="width: 65px;">
Children :
</div>
<div class="paymentfrmtxtbox" style="width: 50px; height: 25px;">
<asp:DropDownList ID="drpChildren" Width="50px" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="drpChildren_SelectedIndexChanged">
</asp:DropDownList>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Rate :</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtRate" Width="153px" runat="server"></asp:TextBox>
</div>
<div class="paymentfrmvalidation">
<%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtRate"
ErrorMessage="Invalid Format" ValidationExpression="^(-)?\d+(\.\d\d)?$" ValidationGroup="a"></asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtRate"
ErrorMessage="Rate Required" ValidationGroup="a"></asp:RequiredFieldValidator></div>--%>
</div>
</div> <div align="center"> <asp:Label ID="lblRoomMsg" runat="server" ForeColor="Red"></asp:Label></div>
<div class="formrow">
<div class="paymentfrmlabels">
Advance Pay:
</div>
<div class="paymentfrmtxtbox" style="height: 25px;">
<asp:TextBox ID="txtAdvance" runat="server" Width="153px">0.0</asp:TextBox>
</div>
</div>
<div class="formrow" style="text-align: right;">
<asp:LinkButton ID="lnkAdd" CssClass="btn" runat="server" Width="60px" OnClick="lnkAdd_Click1">ADD</asp:LinkButton>
</div>
<div class="formrow" style="text-align:center;">
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtCheckOut"
ControlToValidate="txtCheckIn" Operator="LessThanEqual" Type="Date" ForeColor="Red" ErrorMessage="CheckIn Must Be Before CheckOut"
Display="Dynamic" ValidationGroup="a"/>
</div>
<div class="formrow" style="height: auto; margin-top: 20px; width: 430px;">
<asp:GridView ID="gvAddedRooms" runat="server" CssClass="active-grid" AutoGenerateColumns="False"
DataKeyNames="ID" Height="18px" Width="100%" OnRowDeleting="gvAddedRooms_RowDeleting">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" />
<asp:BoundField DataField="RoomTypeX" HeaderText="RoomType" />
<asp:BoundField DataField="RoomX" HeaderText="RoomX" />
<asp:BoundField DataField="Rate" HeaderText="Rate" DataFormatString="{0:f}" />
<asp:BoundField DataField="Adults" HeaderText="Adults" />
<asp:BoundField DataField="Children" HeaderText="Children" />
<asp:CommandField ShowDeleteButton="True" />
</Columns>
</asp:GridView>
</div>
<div style="float:left;"> <asp:Label ID="Label1" runat="server" Text="Total Charge : " Font-Bold="true" ForeColor ="Blue" style="font-size:19px;"></asp:Label><asp:Label ID="lblTotalAmount" runat="server" Text=""></asp:Label>
</div>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="gvAddedRooms" />
<asp:PostBackTrigger ControlID="drpRoomtype" />
<asp:PostBackTrigger ControlID="drpPlan" />
<asp:PostBackTrigger ControlID="lnkAdd" />
<asp:PostBackTrigger ControlID="lstRooms" />
<asp:PostBackTrigger ControlID="drpAdults" />
<asp:PostBackTrigger ControlID="drpChildren" />
<asp:PostBackTrigger ControlID="btnRemoveFilename1" />
</Triggers>
</asp:UpdatePanel>
<%--<div class="formrow" style="text-align: right;">
<asp:UpdatePanel ID="UpdatePanel3" UpdateMode ="Conditional" runat="server">
<ContentTemplate >
Agency :
<asp:DropDownList ID="drpChannel" runat="server" Width="172px" AutoPostBack="True"
Height="32px" >
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="drpChannel"
/>
<asp:AsyncPostBackTrigger ControlID="lnkNewChannel" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:LinkButton ID="lnkNewChannel" runat="server" >New Channel</asp:LinkButton>
</div> --%>
<div class="newsubheadingsearchqueryresults" style="width: 685px;">
<h3>
Customer Details</h3>
<span class="requiredExample">[ * ] = Required Information</span></div>
<div class="formfieldset" style="margin-bottom: 40px;">
<div class="formrow">
<div class="paymentfrmlabels">
Paying Customer :</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtCustomerName" Width="153px" runat="server"></asp:TextBox>
</div>
<div class="paymentfrmvalidation">
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtCustomerName"
ErrorMessage="[*]" ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"
ValidationGroup="a" Display="Dynamic"></asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCustomerName"
ValidationGroup="a" ErrorMessage="[*]" Display="Dynamic"></asp:RequiredFieldValidator>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Customer Type :</div>
<div class="paymentfrmtxtbox">
<asp:DropDownList ID="drpCustomerType" Width="153px" runat="server">
<asp:ListItem Text="Person" Value="Person"></asp:ListItem>
<asp:ListItem Text="Company" Value="Company"></asp:ListItem>
</asp:DropDownList>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
E-Mail :
</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtEmail" Width="153px" runat="server"></asp:TextBox>
</div>
<div class="paymentfrmvalidation">
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Phone No :
</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtPhone" runat="server" Height="23px" Width="153px"></asp:TextBox>
</div>
<div class="paymentfrmvalidation">
<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="Invalid format"
Display="Dynamic" ValidationExpression="^[0-9]*$" ControlToValidate="txtPhone"
ValidationGroup="a"></asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtPhone"
Display="Dynamic" ValidationGroup="a" ErrorMessage="[*]"></asp:RequiredFieldValidator>
</div>
</div>
<div class="formrow" style="height: 130px;">
<div class="paymentfrmlabels">
Address:</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtAddress" runat="server" Height="129px" TextMode="MultiLine" Width="153px"></asp:TextBox>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
City :</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtCity" runat="server" Width="153px"></asp:TextBox>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Country :</div>
<div class="paymentfrmtxtbox">
<asp:DropDownList ID="drpCountry" Width="153px" runat="server">
</asp:DropDownList>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
State :</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtState" Width="153px" runat="server"></asp:TextBox>
</div>
</div>
<div class="formrow">
<div class="paymentfrmlabels">
Postal Code :</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtPostalCode" Width="153px" runat="server"></asp:TextBox>
</div>
</div>
<div class="formrow" style="height: 90px; width: 670px;">
<div class="paymentfrmlabels">
Other Guest Names :</div>
<div class="paymentfrmtxtbox" style="margin-right:45px;">
<asp:TextBox ID="txtOtherGuest" runat="server" Height="90px" Width="153px" TextMode="MultiLine"></asp:TextBox>
</div>
<div class="paymentfrmlabels">
Other Information:</div>
<div class="paymentfrmtxtbox">
<asp:TextBox ID="txtOtherInf" runat="server" Height="90px" Width="153px" TextMode="MultiLine"></asp:TextBox>
</div>
</div>
<div class="formrow" style="vertical-align: text-top;">
<div class="paymentfrmlabels">
Identity Proof :</div>
</div>
<div class="formrow">
<div class="paymentfrmtxtbox">
</div>
</div>
<div class="formrow" style="text-align: right">
<div class="paymentfrmlabels">
<input id="txtLogoFileName1" type="file" style ="float :left; z-index:999;" name="txtSmallImage1FileName" runat="server" />
<asp:UpdatePanel ID="UpdatePanel2" runat="server" ChildrenAsTriggers ="true" UpdateMode ="Conditional">
<ContentTemplate >
<div class="paymentfrmtxtbox">
<asp:Button ID="btnRemoveFilename1" runat="server" style="margin-left:50px; float :left; z-index:999;" Text="Remove" OnClick="btnRemoveFilename1_Click">
</asp:Button>
</div>
<asp:Label ID="lblLogoFileName1" runat="server" CssClass="labelText" ForeColor="Silver"> </asp:Label>
</div>
</ContentTemplate>
<Triggers >
<asp:PostBackTrigger ControlID ="btnRemoveFilename1" />
</Triggers>
</asp:UpdatePanel>
<div class="formrow" style="width: 300px;">
<div class="paymentfrmtxtbox ">
<asp:UpdatePanel ID="UpdatePanel3" UpdateMode ="Conditional" ChildrenAsTriggers ="true" runat="server">
<ContentTemplate >
Agency:
<asp:DropDownList ID="drpChannel" runat="server" Width="153px" AutoPostBack="True"
style=" float: right; height: 28px; margin-right: 65px;width: 157px;" >
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="drpChannel"
/>
<asp:AsyncPostBackTrigger ControlID="lnkNewChannel" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:LinkButton ID="lnkNewChannel" runat="server" style="display:block; float: right;margin-right: -71px; margin-top: 16px;" >New Channel</asp:LinkButton>
</div>
</div>
</div>
<div class="formrow" style="text-align: right; font-weight:bold; color:#000;">
</div>
<div class="formrow" style="text-align: right; width: 670px;">
<asp:LinkButton ID="lnkSubmit" CssClass="btn" runat="server" OnClick="lnkSubmit_Click1"
Width="65px" ValidationGroup="a">Check In</asp:LinkButton>
<asp:LinkButton ID="lnkCheckout" CssClass="btn" Width="65px" runat="server" OnClick="lnkCheckout_Click"
ValidationGroup="a">Check Out</asp:LinkButton>
<asp:LinkButton ID="lnkCancel" CssClass="btn" Width="65px" runat="server" OnClick="lnkCancel_Click1">Cancel</asp:LinkButton>
</div>
</div>
</div>
<ajaxtoolkit:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="modalBackground" PopupControlID ="pnlChannel" TargetControlID ="lnkNewChannel" CancelControlID ="ImgBtnClose" runat="server">
</ajaxtoolkit:ModalPopupExtender>
<asp:Panel ID="pnlChannel" runat="server">
<div align="right" style ="padding-top :50px" >
<asp:ImageButton ID="ImgBtnClose" width="25px" Height ="25px" ImageUrl="~/Images/cross.png" runat="server" /></div>
<div style ="background-color:White ; border :20px; border-color:Blue;padding:20px 40px; border-radius:20px;" >
<style type="text/css">
.style1 {
width: 100%;
}
.style2
{
text-align: center;
font-weight: bold;
font-family: Andalus;
font-size: xx-large;
color: #434343;
}
.style3
{
width: 81px;
}
</style>
<div>
<table class="style1">
<tr>
<td class="style2" colspan="2">
Agency</td>
</tr>
<tr><td> </td><td> </td></tr>
<tr><td> </td><td> </td></tr>
<tr>
<td class="style3">
<asp:Label ID="lblName" runat="server" Text="Name:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtName" runat="server" Width="189px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="txtName" Display="Dynamic" ErrorMessage="Mandatory Field!!!"
ForeColor="Red" ValidationGroup="acssd23"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server"
ControlToValidate="txtName" Display="Dynamic"
ErrorMessage="Invalid Name Format!!!" Font-Names="Arial" Font-Size="8pt"
ForeColor="Red" SetFocusOnError="True"
ValidationExpression="^[a-zA-Z-'.\s]{1,50}" ValidationGroup="acssd23"></asp:RegularExpressionValidator>
</td>
</tr>
<tr><td> </td><td> </td></tr>
<tr>
<td class="style3">
<asp:Label ID="lblContact" runat="server" Text="Contact:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtContact" runat="server" Width="189px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtContact" Display="Dynamic"
ErrorMessage="Mandatory Field!!!" ForeColor="Red"
ValidationGroup="acssd23"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtContact" Display="Dynamic"
ErrorMessage="Invalid Contact Format!!!" ForeColor="Red"
style="font-size: xx-small" ValidationExpression="^[0-9-+]*$"
ValidationGroup="acssd23"></asp:RegularExpressionValidator>
</td>
</tr>
<tr><td> </td><td> </td></tr>
<tr>
<td class="style3">
<asp:Label ID="lblAddress" runat="server" Text="Address:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtAddresss" runat="server" Height="64px" TextMode="MultiLine"
width="189px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"
ControlToValidate="txtAddresss" Display="Dynamic"
ErrorMessage="Mandatory Field!!!" ForeColor="Red"
ValidationGroup="acssd23"></asp:RequiredFieldValidator>
</td>
</tr>
<tr><td> </td><td> </td></tr>
<tr>
<td class="style3">
<asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtEmails" runat="server" Width="189px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"
ControlToValidate="txtEmails" Display="Dynamic"
ErrorMessage="Mandatory Field!!!" ForeColor="Red"
ValidationGroup="acssd23"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator015" runat="server"
ControlToValidate="txtEmail" ErrorMessage="Invalid Email Format!!!"
ForeColor="Red"
ValidationExpression="\w+([-+.']\w+)*#\w+([-.]\w+)*\.\w+([-.]\w+)*"
ValidationGroup="acssd23"></asp:RegularExpressionValidator>
</td>
</tr>
<tr><td> </td><td> </td></tr>
<tr>
<td class="style3">
<asp:Label ID="lblWebsite" runat="server" Text="Website:"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtWebsite" runat="server" Width="189px"></asp:TextBox>
</td>
</tr>
<tr><td> </td><td> </td></tr>
<tr>
<td class="style3">
</td>
<td>
</td>
</tr>
<tr>
<td class="style3">
</td>
<td align ="right" >
<asp:Button ID="btnSubmit" CssClass="btn" Width ="140px" runat="server" Text="Submit"
onclick="btnSubmit_Click" style="height: 26px" ValidationGroup="acssd23" />
</td>
</tr>
</table>
</div>
</div>
</asp:Panel>
</asp:Panel>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
<Triggers>
<asp:PostBackTrigger ControlID="Button1" />
</Triggers>
<ContentTemplate>
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="Button1" runat="server"Text="Upload" OnClick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
The default ASP.NET FileUpload control will never work with an UpdatePanel. You need a special AsyncFileUpload control as defined in an AjaxControl Toolkit.
<ajaxToolkit:AsyncFileUpload OnClientUploadError="uploadError"
OnClientUploadComplete="uploadComplete" runat="server"
ID="AsyncFileUpload1" Width="400px" UploaderStyle="Modern"
UploadingBackColor="#CCFFFF" ThrobberID="myThrobber" />
or you can use UpdatePanel Triggers
<Triggers>
<asp:PostBackTrigger ControlID="YourControlID" />
</Triggers>
I spent all afternoon on this today, using any number of solutions I found on various forums, including this one, CodeProject.com, asp.net forums, and a whole slew of others. I tried setting Postback triggers and AsyncPostback triggers, and this late at night I can't remember what all else. None of them worked, including the one marked as the answer on this page. What I finally found was an obscure post from 2007 on the asp.net forum which, for some reason now will not load on my browser. At any rate, what finally worked for me was replacing the
<form id="form1" runat="server>
tag with this:
<form id="Form1" method="post" enctype="multipart/form-data" runat="server">
Worked beautifully.
In my case it was in the Site.Master file, but in the case of the posting on forums.asp.net, it worked in a default.aspx file.
Update: The forums.asp.net site was down, but it's back up now: UpdatePanel + FileUpload + PostBackTrigger doesn't seem to work.
Here is my code which I used image slider display image using datalist but I don't have any idea how can I display big image when image slide here is my code:
<div id="photos" class="galleryview">
<img src="images/home_gallery/banner1.jpg" />
<div style="margin: 30px 0px 0px 0px">
<asp:DataList RepeatDirection="Horizontal" ID="dl_Images" runat="server" OnItemDataBound="dl_Images_ItemDataBound"
OnItemCommand="dl_Images_ItemCommand">
<ItemTemplate>
<ul class="filmstrip">
<div class="panel">
<a href="" id="img_href" runat="server">
<div class="panel-overlay" align="left">
<li>
<asp:Image BorderColor="#ececec" BorderStyle="Solid" BorderWidth="1" runat="server"
ID="i_ProductImage" Width="104" Height="104" />
</li>
</a>
</div>
<div align="center" style="margin: 0px 0px 0px 0px">
<asp:LinkButton ToolTip='<%# Eval("ProductID") %>' CommandArgument='<%# Eval("ProductID") %>'
CommandName="lbclick" ID="lb_productID" runat="server" Text='<%# Eval("ProductID") %>'
CssClass="bule-link"></asp:LinkButton>
</div>
<%--<asp:Label ID="l_ProductId" runat="server" Text='<%#Eval("ProductId") %>'></asp:Label>--%>
</div>
</ul>
</ItemTemplate>
</asp:DataList>
</div>
</div>
The problem I have is that an aspx page within a folder called Masters doesn't open when I click to it through the menu link. The error i receive is that the URL http://ATT1/masters/masters/axy.aspx, is not found. My code is:
<body onload=" $(document).ready(function ()">
<form id="Form1" runat="server">
<div class="page" id="container">
<div class="header" >
<div class="title">
My ASP.NET Application
</div>
<div class="loginDisplay">
<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<AnonymousTemplate>
[ Log In
]
</AnonymousTemplate>
<LoggedInTemplate>
Welcome <span class="bold">
<asp:LoginName ID="HeadLoginName" runat="server" />
</span>! [
<asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out"
LogoutPageUrl="~/" />
]
</LoggedInTemplate>
</asp:LoginView>
</div>
<div class="nav" style="background-color: #dedede; height: 25px">
<ul id="nav">
<li>Master
<ul class="nav first">
<li><a href="Masters/Employee_Details.aspx">
<asp:Image ID="Image39" runat="server" ImageUrl="~/icons/a_g.gif" />Compaines</a></li>
<li><a href="Masters/Master_setting.aspx">
<asp:Image ID="Image41" runat="server" ImageUrl="easymenu/b_i.gif" />Master Settings</a></li>
<li><a href="Masters/Mail_Setting.aspx">
<asp:Image ID="Image42" runat="server" ImageUrl="easymenu/email.png" />Mail Settings</a></li>
<li><a href="Masters/Shift_List.aspx">
<asp:Image ID="Image40" runat="server" ImageUrl="icons/device.gif" />Shift Details</a></li>
<li><a href="Masters/Shift%20Calender%20List%20.aspx">
<asp:Image ID="Image43" runat="server" ImageUrl="easymenu/oCalendar.gif" />Shift
Calenders</a></li>
<li><a href="Masters/Shift_Roster_List.aspx">
<asp:Image ID="Image44" runat="server" ImageUrl="easymenu/oCalendar.gif" />Shift
Rosters</a></li>
<li><a href="Masters/Shift_Group.aspx">
<asp:Image ID="Image45" runat="server" ImageUrl="icons/device.gif" />Shift Group</a></li>
<li><a href="Masters/Leave_Type_List.aspx">
<asp:Image ID="Image46" runat="server" ImageUrl="easymenu/b_g.gif" />Leave Types</a></li>
<li><a href="Masters/Employee_Category.aspx">
<asp:Image ID="Image47" runat="server" ImageUrl="icons/oTasks.gif" />Employees Categories</a></li>
<li><a href="">
<asp:Image ID="Image48" runat="server" ImageUrl="icons/holiday.gif" />Public Holidays</a></li>
<li><a href="">
<asp:Image ID="Image49" runat="server" ImageUrl="easymenu/b_b.gif" />Departments</a></li>
<li><a href="">
<asp:Image ID="Image50" runat="server" ImageUrl="easymenu/b_c.gif" />Departments
Shifts</a></li>
<li><a href="">
<asp:Image ID="Image51" runat="server" ImageUrl="easymenu/b_a.gif" />Employees</a></li>
<li><a href="">
<asp:Image ID="Image52" runat="server" ImageUrl="easymenu/b_h.gif" />Employees Shifts</a></li>
<li><a href="">
<asp:Image ID="Image53" runat="server" ImageUrl="easymenu/b_d.gif" />Employees Leave
Entries</a></li>
<li><a href="">
<asp:Image ID="Image54" runat="server" ImageUrl="easymenu/b_d.gif" />Employees OutDoor
Entries</a></li>
<li><a href="">
<asp:Image ID="Image55" runat="server" ImageUrl="easymenu/BackupDataBase.gif" />Attendence
Log</a></li>
<li><a href="">
<asp:Image ID="Image56" runat="server" ImageUrl="easymenu/BackupDataBase.gif" />Manage
Work Code</a>
<ul class="nav">
<li>Work Code</li>
<li>Work Code Wise Daily Report</li>
<li>Work Code Wise Summary Report</li>
</ul>
</li>
</ul>
</li>
<li>Device Management
<ul class="nav first">
<li><a href="">
<asp:Image ID="Image57" runat="server" ImageUrl="easymenu/Device.gif" />Device List</a></li>
<li><a href="">
<asp:Image ID="Image58" runat="server" ImageUrl="icons/logs.gif" />Employee Device
Logs</a></li>
<li><a href="">
<asp:Image ID="Image59" runat="server" ImageUrl="icons/device.gif" />Device Commands</a></li>
<li><a href="">
<asp:Image ID="Image60" runat="server" ImageUrl="icons/device.gif" />Device Operation
Logs</a></li>
<li><a href="">
<asp:Image ID="Image61" runat="server" ImageUrl="icons/device.gif" />Device Error
Messages</a></li>
</ul>
</li>
<li>Utilities
<ul class="nav first">
<li><a href="">
<asp:Image ID="Image62" runat="server" ImageUrl="icons/import.gif" />Import Employees
Details</a></li>
<li><a href="">
<asp:Image ID="Image63" runat="server" ImageUrl="icons/import.gif" />Import EmployeesOtherDetails</a></li>
<li><a href="">
<asp:Image ID="Image64" runat="server" ImageUrl="icons/export.gif" />Export Employees
Details</a></li>
<li><a href="">
<asp:Image ID="Image65" runat="server" ImageUrl="icons/export.gif" />Export Employees
Other Details</a></li>
<li><a href="">
<asp:Image ID="Image66" runat="server" ImageUrl="icons/export.gif" />Export Employees
Leave Details</a></li>
<li><a href="">
<asp:Image ID="Image67" runat="server" ImageUrl="icons/import.gif" />Import Employees
Leave Balance</a></li>
<li><a href="">
<asp:Image ID="Image68" runat="server" ImageUrl="icons/import.gif" />Import Log
Records</a></li>
<li><a href="">
<asp:Image ID="Image70" runat="server" ImageUrl="icons/import.gif" />Parallel Database
Export</a></li>
<li><a href="">
<asp:Image ID="Image69" runat="server" ImageUrl="icons/import.gif" />Export Attendence
Logs</a></li>
</ul>
</li>
<li>Reports
<ul class="nav first">
<li><a href="">
<asp:Image ID="Image71" runat="server" ImageUrl="easymenu/c_c.gif" />Recalculate
Attendence</a></li>
<li><a href="">
<asp:Image ID="Image72" runat="server" ImageUrl="easymenu/c_c.gif" />Daily Attendence
Report</a></li>
<li><a href="">
<asp:Image ID="Image73" runat="server" ImageUrl="easymenu/c_c.gif" />Monthly Status</a></li>
<li><a href="">
<asp:Image ID="Image74" runat="server" ImageUrl="easymenu/c_c.gif" />Yearly Summary</a></li>
<li><a href="">
<asp:Image ID="Image75" runat="server" ImageUrl="easymenu/c_c.gif" />Attendence
Sumary Report</a></li>
<li><a href="">
<asp:Image ID="Image76" runat="server" ImageUrl="easymenu/c_c.gif" />Leave Summary</a></li>
<li><a href="">
<asp:Image ID="Image77" runat="server" ImageUrl="easymenu/c_c.gif" />Employees Details</a></li>
<li><a href="">
<asp:Image ID="Image78" runat="server" ImageUrl="easymenu/c_c.gif" />Employees Shift
Scheduler</a></li>
<li><a href="">
<asp:Image ID="Image79" runat="server" ImageUrl="easymenu/c_c.gif" />Department
Summary</a></li>
<li><a href="">
<asp:Image ID="Image80" runat="server" ImageUrl="easymenu/c_c.gif" />Log Records</a></li>
<li><a href="">
<asp:Image ID="Image81" runat="server" ImageUrl="easymenu/c_c.gif" />Random Check
Report</a></li>
<li><a href="">
<asp:Image ID="Image82" runat="server" ImageUrl="easymenu/c_c.gif" />Leave Entry
Report</a></li>
<li><a href="">
<asp:Image ID="Image83" runat="server" ImageUrl="easymenu/c_c.gif" />OutDoor Entry
Report</a></li>
<li><a href="">
<asp:Image ID="Image84" runat="server" ImageUrl="easymenu/c_c.gif" />Daily Log Report
Matrix</a></li>
<li><a href="">
<asp:Image ID="Image85" runat="server" ImageUrl="easymenu/c_c.gif" />Last Day Status
Report</a></li>
<li><a href="">
<asp:Image ID="Image86" runat="server" ImageUrl="easymenu/c_c.gif" />Continuous
Abnormality</a></li>
<li><a href="">
<asp:Image ID="Image87" runat="server" ImageUrl="easymenu/c_c.gif" />Muster Roll
Report</a></li>
<li><a href="">
<asp:Image ID="Image88" runat="server" ImageUrl="easymenu/c_c.gif" />Form J Report</a></li>
<li><a href="">
<asp:Image ID="Image89" runat="server" ImageUrl="easymenu/c_c.gif" />Detailed Form
J Report</a></li>
<li><a href="">
<asp:Image ID="Image90" runat="server" ImageUrl="easymenu/c_c.gif" />Generate memo</a></li>
<li><a href="">
<asp:Image ID="Image91" runat="server" ImageUrl="easymenu/c_c.gif" />Special Reports</a>
<ul class="nav">
<li>Departments vs EmploymentType Matrix</li>
<li>Company vs EmploymentType Matrix</li>
<li>Department Graph</li>
<li>Company Graph</li>
</ul>
</li>
<li><a href="">
<asp:Image ID="Image92" runat="server" ImageUrl="easymenu/c_c.gif" />Export Logs</a>
<ul class="nav">
<li>Export Attendence Logs</li>
<li>Attendence Logs (Employee Wise)</li>
<li>Export Device Logs</li>
<li>Export Logs in Custom Format</li>
<li>Logs in Third Party Payroll Format</li>
<li>SAP P10/ P20 Export</li>
</ul>
</li>
<li><a href="">
<asp:Image ID="Image93" runat="server" ImageUrl="easymenu/c_c.gif" />Extra Reports</a>
<ul class="nav">
<li>Custom Monthly Status Report</li>
<li>Monthly Late Arrival Early Departure Report</li>
</ul>
</li>
</ul>
</li>
<li>System User</li>
<li>Database Setting</li>
<li>Change Password</li>
<li>About
<ul class="nav first">
<li>Help Manual</li>
<li>About Us</li>
<li>Extend Evaluation</li>
</ul>
</li>
<li>Logoff</li>
</ul>
</div>
<div style="background-image: url('images/title2.jpg ')">
<asp:Image ID="Image36" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image1" runat="server" ImageUrl="~/easymenu/a_a.gif" />
<asp:Image ID="Image2" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image3" runat="server" ImageUrl="~/easymenu/a_d.gif" />
<asp:Image ID="Image5" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image4" runat="server" ImageUrl="~/easymenu/a_e.gif" />
<asp:Image ID="Image6" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image7" runat="server" ImageUrl="~/easymenu/b_i.gif" />
<asp:Image ID="Image8" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image9" runat="server" ImageUrl="~/easymenu/a_c.gif" />
<asp:Image ID="Image10" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image11" runat="server" ImageUrl="~/easymenu/b_b.gif" />
<asp:Image ID="Image12" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image13" runat="server" ImageUrl="~/icons/holiday.gif" />
<asp:Image ID="Image15" runat="server" ImageUrl="~/icons/device.gif" />
<asp:Image ID="Image14" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image17" runat="server" ImageUrl="~/easymenu/oCalendar.gif" />
<asp:Image ID="Image16" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image19" runat="server" ImageUrl="~/icons/oTasks.gif" />
<asp:Image ID="Image18" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image21" runat="server" ImageUrl="~/easymenu/b_g.gif" />
<asp:Image ID="Image20" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image23" runat="server" ImageUrl="~/easymenu/b_c.gif" />
<asp:Image ID="Image22" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image25" runat="server" ImageUrl="~/easymenu/b_a.gif" />
<asp:Image ID="Image24" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image27" runat="server" ImageUrl="~/easymenu/b_h.gif" />
<asp:Image ID="Image26" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image29" runat="server" ImageUrl="~/easymenu/b_f.gif" />
<asp:Image ID="Image28" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image31" runat="server" ImageUrl="~/easymenu/b_f.gif" />
<asp:Image ID="Image30" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image33" runat="server" ImageUrl="~/icons/logs.gif" />
<asp:Image ID="Image32" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image35" runat="server" ImageUrl="~/easymenu/BackupDataBase.gif" />
<asp:Image ID="Image34" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
<asp:Image ID="Image37" runat="server" ImageUrl="~/easymenu/a_g.gif" />
<asp:Image ID="Image38" runat="server" ImageUrl="~/easymenu/header_divider.gif" />
</div>
<%--<a class="vlightbox1" href="" title="10" id="firstImage">
<img src="images/calender.jpg" alt="10"/></a>--%>
</div>
<div class="main">
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
</div>
<div class="clear">
</div>
<div id="popup_box" style="width:445px; margin-top:50px; margin-left:50px" >
<table id="" style="width:445px" cellpadding="0" cellspacing="0" align="center">
<tr>
<td style="background-color:#0099CC; height:25px">
<asp:Label ID="Label1" runat="server" Text=" Login Form"></asp:Label><a id="popupBoxClose">Close</a></td>
</tr>
<tr style="font-size: 0;">
<td>
<img src="images/login-header.gif" />
</td>
</tr>
<tr>
<td style="padding-left: 30px; padding-top: 20px;" align="left">
<table id="" cellpadding="1px" style="width:350px;" >
<tr>
<td style="width:100px;" align="right">
<b><asp:Label ID="Label2" runat="server" Text="Login Name"></asp:Label></b></td>
<td align="left">
<asp:TextBox ID="txt_LoginName" runat="server" Width="210px"></asp:TextBox></td>
</tr>
<tr>
<td align="right">
<b><asp:Label ID="Label3" runat="server" Text="Password"></asp:Label></b></td>
<td align="left">
<asp:TextBox ID="Txt_Password" runat="server" TextMode="Password" Width="210px"></asp:TextBox></td>
</tr>
<tr><td colspan="2" align="right" >
<table id="" width="100%"><tr><td>
<%-- <cc1:captchacontrol id="CaptchaControl1" runat="server" CaptchaChars="ACDEFGHJKLNPQRTUVXYZ2346789" CaptchaMinTimeout="3" ErrorMessage="" Text="Enter the code shown:"></cc1:captchacontrol>--%></td><td><asp:ValidationSummary ID="ValidationSummary2" runat="server" Visible="False" />
</td></tr></table>
</td></tr>
<tr>
<td align="right" colspan="2" >
<table>
<tr>
<td>
<asp:Label ID="lbl_InValidError" runat="server" EnableViewState="False" ForeColor="Red"></asp:Label>
</td>
<td align="right">
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/login_btn.jpg" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="footer">
</div>
</form>
If the page that you have shown as an example is in the Masters folder, then links on it will be relative to that folder.
href="Masters/Master_setting.aspx" would give "Masters/Masters/Master_setting.aspx"
So as the V4Vendetta's comment said, remove the Masters from the relative link, or use an absolute link such as href="~/Masters/Master_setting.aspx"