Click here to Skip to main content
15,915,093 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralVSS Integration Pin
vimal_yet26-Dec-07 18:00
vimal_yet26-Dec-07 18:00 
GeneralRe: VSS Integration Pin
rashidpervaiz0826-Dec-07 19:58
rashidpervaiz0826-Dec-07 19:58 
GeneralRe: VSS Integration Pin
vimal_yet27-Dec-07 0:06
vimal_yet27-Dec-07 0:06 
QuestionIf they are More controls on webpage, How to manage? Pin
Satish - Developer26-Dec-07 17:57
Satish - Developer26-Dec-07 17:57 
AnswerRe: If they are More controls on webpage, How to manage? Pin
sulabh202026-Dec-07 19:02
sulabh202026-Dec-07 19:02 
GeneralRe: If they are More controls on webpage, How to manage? Pin
Michael Sync26-Dec-07 19:07
Michael Sync26-Dec-07 19:07 
AnswerRe: If they are More controls on webpage, How to manage? Pin
Michael Sync26-Dec-07 19:06
Michael Sync26-Dec-07 19:06 
Generalfillilng a dropdown list which is inside a updatepanel Pin
sanjubaba26-Dec-07 17:43
sanjubaba26-Dec-07 17:43 
Hi,

I am fillilng a dropdown list which is inside a updatepanel through a button click event. But after clicking the button again to fill the dropdown , only the updateprogress moving icon gets displayed. i think the page hangs.

i am binding 50,000 records . fetching it from database. i tried doing without updatepanel. its working fine. after including updatepanel and updateprogress controls and then clicking the button second time it hangs.

my code
=======
aspx page

========



<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">

<ContentTemplate>

<table id="tbl" runat="server" width="95%" style="border-width:1px; border-color:lightblue; border-style:solid">

<tr>

<td><asp:DropDownList ID="ddlCat" runat="server"></asp:DropDownList>

<%--<asp:TextBox ID="txt" runat="server"></asp:TextBox>--%>
</td>

</tr>

<tr style="height:10px"><td><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /></td></tr>

</table>

</ContentTemplate>

<%-- <Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click"/>

<asp:PostBackTrigger ControlID="ddlCat" />

</Triggers>--%>
</asp:UpdatePanel>



<asp:UpdateProgress AssociatedUpdatePanelID="UpdatePanel2" ID="UpdateProgress1" runat="server" DisplayAfter="1" Visible="true">

<ProgressTemplate>

<iframe frameborder="0" src="about:blank" style="border:0px;position:absolute;z-index:9;left:0px;top:0px;width:expression(this.offsetParent.scrollWidth);height:expression(this.offsetParent.scrollHeight);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=75, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);"></iframe>

<div style="position:absolute;z-index:10;left:expression((this.offsetParent.clientWidth/2)-(this.clientWidth/2)+this.offsetParent.scrollLeft);top:expression((this.offsetParent.clientHeight/2)-(this.clientHeight/2)+this.offsetParent.scrollTop);">

<table>
<tr>

<td><img src="Images/loading_animation_liferay.gif" /></td>

<td style="font-family:Tahoma;color:Red">Loading Please Wait...</td>

</tr>

</table>

<br />

</div>

</ProgressTemplate>

</asp:UpdateProgress>



=============

aspx.cs page

============



protected void Button1_Click(object sender, EventArgs e)
{



SqlConnection conn = new SqlConnection(connectionString);


SqlDataAdapter sqlda = new SqlDataAdapter("select top 50000 * from abc", connectionString);
sqlda.Fill(ds, "cat");

ddlCat.DataSource = ds.Tables["cat"];
ddlCat.DataValueField = "id";

ddlCat.DataTextField = "id";
ddlCat.DataBind();

}
GeneralRe: fillilng a dropdown list which is inside a updatepanel Pin
Sun Rays26-Dec-07 18:30
Sun Rays26-Dec-07 18:30 
GeneralRe: fillilng a dropdown list which is inside a updatepanel Pin
sanjubaba26-Dec-07 18:36
sanjubaba26-Dec-07 18:36 
GeneralRe: fillilng a dropdown list which is inside a updatepanel Pin
Sun Rays26-Dec-07 18:55
Sun Rays26-Dec-07 18:55 
GeneralRe: fillilng a dropdown list which is inside a updatepanel Pin
sanjubaba26-Dec-07 19:10
sanjubaba26-Dec-07 19:10 
GeneralRe: fillilng a dropdown list which is inside a updatepanel Pin
sanjubaba26-Dec-07 23:17
sanjubaba26-Dec-07 23:17 
Questionserver.transfer Pin
dasumohan26-Dec-07 17:24
dasumohan26-Dec-07 17:24 
GeneralRe: server.transfer Pin
Michael Sync26-Dec-07 19:10
Michael Sync26-Dec-07 19:10 
GeneralASP.Net Textbox Pin
rajanandal26-Dec-07 17:13
rajanandal26-Dec-07 17:13 
GeneralRe: ASP.Net Textbox Pin
Venkatesh Mookkan26-Dec-07 17:34
Venkatesh Mookkan26-Dec-07 17:34 
GeneralRe: ASP.Net Textbox Pin
rashidpervaiz0826-Dec-07 20:27
rashidpervaiz0826-Dec-07 20:27 
Questionhow this can be converted to vb Pin
jagan12326-Dec-07 17:07
jagan12326-Dec-07 17:07 
AnswerRe: how this can be converted to vb Pin
Venkatesh Mookkan26-Dec-07 17:42
Venkatesh Mookkan26-Dec-07 17:42 
GeneralRe: how this can be converted to vb Pin
jagan12326-Dec-07 18:44
jagan12326-Dec-07 18:44 
AnswerRe: how this can be converted to vb Pin
Satish - Developer26-Dec-07 18:03
Satish - Developer26-Dec-07 18:03 
GeneralLoading a list or repeater with persistance Pin
allenpotter26-Dec-07 15:04
allenpotter26-Dec-07 15:04 
GeneralRe: Loading a list or repeater with persistance Pin
Venkatesh Mookkan26-Dec-07 17:00
Venkatesh Mookkan26-Dec-07 17:00 
Generalregister dll with inf Pin
samy10026-Dec-07 13:11
samy10026-Dec-07 13:11 

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.