Click here to Skip to main content
15,924,507 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralBind columns to dropdownlist.... Pin
pranavcool26-Feb-08 3:06
pranavcool26-Feb-08 3:06 
GeneralRe: Bind columns to dropdownlist.... Pin
Not Active26-Feb-08 3:09
mentorNot Active26-Feb-08 3:09 
GeneralCache Header, Footer on Client Side Pin
wEb GuRu...26-Feb-08 2:30
wEb GuRu...26-Feb-08 2:30 
Generalmemory stream file reading Pin
marky77726-Feb-08 1:33
marky77726-Feb-08 1:33 
AnswerRe: memory stream file reading Pin
Guffa26-Feb-08 2:13
Guffa26-Feb-08 2:13 
GeneralRe: memory stream file reading Pin
marky77726-Feb-08 2:15
marky77726-Feb-08 2:15 
GeneralProblem With Web Service Pin
varshavmane26-Feb-08 1:26
varshavmane26-Feb-08 1:26 
GeneralWhole Page Refresh, Not Just UpdatePanel Pin
mohd imran abdul aziz26-Feb-08 1:26
mohd imran abdul aziz26-Feb-08 1:26 
Hi all,
I am using ajax 1.0 ,asp.net2.0 , C#.


I used nested updatepanel so that only part of page get refereshed but my problem is whole page is getting referesh or flicker(whole page goes off that is no control is visible then it comes back with control and data ) on every event(like seletedindexchaged event)
I here encloesed the code please help


<%@ Page Language="C#" MasterPageFile="~/DailyCallReport/Master2.master" AutoEventWireup="true" CodeFile="Dcr.aspx.cs" Inherits="DailyCallReport_Dcr" Title="Daily Call Report" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
<h2 style ="text-align :center ;" ><asp:Label ID="headername" Font-Size ="12pt" runat="server" Text="D a i l y C a l l R e p o r t"></asp:Label>
</h2>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel id="UpdatePanelmain" ChildrenAsTriggers ="true" UpdateMode ="Conditional" runat="server">
<ContentTemplate>
<asp:Panel ID="MAINPANEL" runat="server" Width= "815 px" BackColor="#FFFFFF" HorizontalAlign = "Left">
<table border = 0 >
<tbody >
<tr style ="background-color:#85C8D0 " align ="left" >

<TD style="WIDTH: 100px; BORDER-BOTTOM: gray 1px solid; height: 28px;" align=right >
<asp:Label id="Label3" runat="server" Text="Day Type" Font-Size="9pt" SkinID="LABEL_Navy_Simple"></asp:Label>
</TD>
<TD style="BORDER-BOTTOM: gray 1px solid; TEXT-ALIGN: left; width: 180px; height: 28px;">
<asp:DropDownList id="Ddldatetype" runat="server" Width="165px" Font-Bold="False" Font-Size="9pt" Font-Names="Arial" SkinID="DROPDOWNLIST_LONG" >
</asp:DropDownList>
</TD>
<td style ="width:280px;" >
</td>
<TD style="WIDTH: 58px; BORDER-BOTTOM: gray 1px solid; height: 28px;" align=right>
<asp:Label id="Label2" runat="server" Text="Date" Font-Size="9pt" Font-Names ="Arial" SkinID="LABEL_Navy_Simple"></asp:Label>
</TD>
<TD style="BORDER-BOTTOM: gray 1px solid; TEXT-ALIGN: left; width: 180px; height: 28px;">
<asp:TextBox ID="Txtreportingdt" runat="server" SkinID ="Textbox"></asp:TextBox>
</TD>
</tr>
</tbody>
</table>
<table border = 1 >
<tbody >

<TR style ="background-color :#B1CCDF" >
<asp:UpdatePanel id="UpdatePanel1" ChildrenAsTriggers ="False" UpdateMode ="Conditional" runat="server">

<ContentTemplate>

-- some code here
</ContentTemplate>
</asp:UpdatePanel>
</tbody>
</table>
<table >
<tbody >

</TR>
<tr style ="background-color :#B1CCDF" >
<TD style="WIDTH: 58px; BORDER-BOTTOM: gray 1px solid; height: 26px;" align=right>
<asp:Label id="Label5" runat="server" Text="Hospital" Font-Size="9pt" SkinID="LABEL_Navy_Simple"></asp:Label>
</TD>
<TD style="BORDER-BOTTOM: gray 1px solid; TEXT-ALIGN: left; width: 250px; height: 26px;">
<asp:DropDownList id="DDLhosp" runat="server" Width="240px" Font-Bold="False" Font-Size="9pt" Font-Names="Arial" AppendDataBoundItems="True" AutoPostBack="True" OnSelectedIndexChanged="DDLhosp_SelectedIndexChanged" ></asp:DropDownList>
</TD>
<TD style="WIDTH: 58px; BORDER-BOTTOM: gray 1px solid; height: 26px;" align=right>
<asp:Label id="Label6" runat="server" Text="Customer" Font-Size="9pt" SkinID="LABEL_Navy_Simple"></asp:Label>
</TD>
<TD style="BORDER-BOTTOM: gray 1px solid; TEXT-ALIGN: left; width: 230px; height: 26px; " colspan = "3">
<asp:DropDownList id="Ddlcust" runat="server" Width="220px" Font-Bold="False" Font-Size="9pt" Font-Names="Arial" AppendDataBoundItems="True" AutoPostBack="True" ></asp:DropDownList>
</TD>
<TD style="BORDER-BOTTOM: gray 1px solid; TEXT-ALIGN: left; width: 132px; height: 26px;">
<asp:CheckBoxList ID="CheckBoxList1" runat="server" Width = "125 px" Font-Names ="Arial" Font-Size ="9 pt" OnSelectedIndexChanged = CheckBoxList1_SelectedIndexChanged AutoPostBack ="true" RepeatDirection="Horizontal">
</asp:CheckBoxList>
</TD>
<TD style="WIDTH: 58px; BORDER-BOTTOM: gray 1px solid; height: 26px;" align="center" >
<%--<asp:Label id="Label11" runat="server" Text="Worked With" Font-Size="9pt" SkinID="LABEL_Navy_Simple"></asp:Label>--%>
<asp:ImageButton ID="Imgbtnworked" runat="server" ImageUrl="~/DailyCallReport/FrameImg/icon/Users26X26.gif" AlternateText="Worked With" /></td>
</TD>
</tr>

</tbody>
</table>
<!-- SECOND TABLE -->
<asp:UpdatePanel id="UpdatePanel5" ChildrenAsTriggers ="true" UpdateMode ="Conditional" runat="server">

</ContentTemplate>

<asp:UpdatePanel id="UpdatePanel2" ChildrenAsTriggers ="true" UpdateMode ="Conditional" runat="server">

<ContentTemplate>
some control code here
</ContentTemplate>
</asp:UpdatePanel>
</tr>
<tr style ="background-color :#C0E3DD">
<asp:UpdatePanel id="UpdatePanel3" ChildrenAsTriggers ="true" UpdateMode ="Conditional" runat="server" >
<ContentTemplate >
---some control here
</ContentTemplate>
</asp:UpdatePanel>
</tr>
<tr style ="background-color :#C0E3DD" >
<asp:UpdatePanel id="UpdatePanel4" ChildrenAsTriggers ="true" UpdateMode ="Conditional" runat="server">

<ContentTemplate>
<some control here>
</ContentTemplate>
</asp:UpdatePanel>
</tr>
<tr style ="background-color :#85C8D0 ">
<TD style="BORDER-BOTTOM: gray 1px solid; TEXT-ALIGN:center ; " colspan ="4" >
<asp:Button ID="Button1" runat="server" SkinID ="BUTTON_LONG" Text="Save Draft" OnClick="Button1_Click1" />
<asp:Button ID="Btncancel" runat="server" OnClick="Btncancel_Click" Text="Cancel" />
</TD>
</tr>
</tbody>
</table>
<table style="width: 814px" >
<tbody >
<tr>
</tr>
<tr>
<td style="width: 825px" >
<asp:Panel ID = "gridpanel" runat="server" Width="800 px" Height="175px" ScrollBars="Both" BorderWidth="1px" BorderStyle="Solid" BorderColor="#99CCCC">
<asp:GridView ID="Grdmain" Width ="806px" AutoGenerateColumns="False" CellPadding="4" DataKeyNames ="DocTORcode"
BackColor ="#C0E3DD" runat="server" OnRowDataBound="grdmain_rowDataBound" OnRowDeleting="grdmain_RowDeleting" OnRowEditing="grdmain_RowEditing">

</asp:GridView>
</asp:Panel>
</td>
</tr>
<tr style ="background-color :#85C8D0 ">
<td style="height: 13px; width: 825px;">
<asp:ImageButton ID="btnclose" runat="server" OnClientClick ="javascript: return confirm('Do you want to delete the record?');" OnClick="btnclose_Click" Width="84px" AlternateText="Close the Day" Height="47px" /></td>
</tr>

</tbody>
</table>
<asp:HiddenField ID="HiddenField1" runat="server" />
</asp:Panel>
<ajaxToolkit:RoundedCornersExtender ID="RoundedCornersExtender1" BorderColor = "#C0E3DD" runat="server" TargetControlID="MAINPANEL" Radius="20" >
</ajaxToolkit:RoundedCornersExtender>

</ContentTemplate>
</asp:UpdatePanel>



</asp:Content>

regards
imran khan

Generalhelp Pin
arya0826-Feb-08 1:17
arya0826-Feb-08 1:17 
GeneralRe: help Pin
Not Active26-Feb-08 1:46
mentorNot Active26-Feb-08 1:46 
GeneralRe: help Pin
arya0826-Feb-08 1:56
arya0826-Feb-08 1:56 
GeneralRe: help Pin
Christian Graus26-Feb-08 10:33
protectorChristian Graus26-Feb-08 10:33 
GeneralRe: help Pin
arya0826-Feb-08 18:27
arya0826-Feb-08 18:27 
Generaltime limit validation Pin
eyeseetee26-Feb-08 1:11
eyeseetee26-Feb-08 1:11 
GeneralRe: time limit validation Pin
Arindam Tewary26-Feb-08 1:20
professionalArindam Tewary26-Feb-08 1:20 
GeneralRe: time limit validation Pin
eyeseetee26-Feb-08 2:56
eyeseetee26-Feb-08 2:56 
GeneralRe: time limit validation Pin
Not Active26-Feb-08 3:07
mentorNot Active26-Feb-08 3:07 
QuestionHow to add a checkbox conrol to datalist or datagrid in single cell like(2,2) Pin
shames(Sam)26-Feb-08 1:08
shames(Sam)26-Feb-08 1:08 
AnswerRe: How to add a checkbox conrol to datalist or datagrid in single cell like(2,2) Pin
varshavmane26-Feb-08 1:56
varshavmane26-Feb-08 1:56 
GeneralAsp.net fromFROM keyword not found where expected Pin
Waqas Hasan26-Feb-08 0:59
Waqas Hasan26-Feb-08 0:59 
QuestionGridView FindControl.. Pin
Sasmi_Office26-Feb-08 0:53
Sasmi_Office26-Feb-08 0:53 
GeneralScrewTurn CMS [modified] Pin
ASPnoob26-Feb-08 0:30
ASPnoob26-Feb-08 0:30 
GeneralRadioButtonList not functioning Pin
codingrocks26-Feb-08 0:29
codingrocks26-Feb-08 0:29 
Questionpostback url of lik button and row bound of gridview Pin
Sonia Gupta26-Feb-08 0:10
Sonia Gupta26-Feb-08 0:10 
GeneralRe: postback url of lik button and row bound of gridview Pin
Member 336757026-Feb-08 0:22
Member 336757026-Feb-08 0:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.