473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with refresh data in UpdatePanel

Hi, i have a problem with refreshing data in UpdatePanel. In aspx file
i have a AjaxToolKit TabContainer and inside it a UpdatePanel:

<asp:UpdatePanel ID="upRemoveUser" runat="server"
OnLoad="upRemoveUser_Load">
<ContentTemplate>
<center>
<asp:Panel ID="pnlInfoRemove"
runat="server" Height="20px" Width="400px" Visible="false">
<asp:Image ID="imgInfoRemove"
runat="server" Height="14px" />
<asp:Label ID="lblInfoRemove"
runat="server" ForeColor="Blue" Text="Label"></asp:Label>
</asp:Panel>
<table class="NewUser">
<tr class="Login">
<td colspan="2"
class="tableHeader" align="center">
Usuń użytkownika</td>
</tr>
<tr>
<td class="Login"
align="right">
Login użytkownika:</
td>
<td align="left">
<asp:DropDownList
ID="ddlUsersToRemove" runat="server" Width="250px" AutoPostBack="True"

DataTextField="NameAndLogin" DataValueField="ID" CssClass="textBox">
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="Login"
align="right">
Nazwa użytkownika:</
td>
<td align="left">
<asp:TextBox
ID="txtRemoveName" runat="server" MaxLength="70" Width="80%"
ReadOnly="True"
CssClass="textBox"
Enabled="false"></asp:TextBox>
<asp:Label ID="Label1"
runat="server" ForeColor="Red" Width="5px"></asp:Label>
</td>
</tr>
<tr>
<td align="right">
Uprawnienia:</td>
<td align="left">
<asp:DropDownList
ID="ddlRemoveRights" Width="81%" runat="server" Enabled="False"
CssClass="textBox">
<asp:ListItem
Selected="True" Value="0">Użytkownik podstawowy</asp:ListItem>
<asp:ListItem
Value="1">Użytkownik zaawansowany</asp:ListItem>
</asp:DropDownList></
td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button
ID="btnRemoveUser" runat="server" Text="Usuń"
OnClick="btnRemoveUser_Click" />

<cc1:ConfirmButtonExtender ID="cbeRemoveUser" runat="server"
TargetControlID="btnRemoveUser"
ConfirmText="Czy
na pewno chcesz usun±ć tego użytkownika?">
</
cc1:ConfirmButtonExtender>
</td>
</tr>
</table>
</center>
</ContentTemplate>
</asp:UpdatePanel>

In upRemoveUser_Load event i get data from database and fill TextBox
and DropDownList:

protected void upRemoveUser_Load(object sender, EventArgs e)
{
selectedUserRemove = GetUserDetails(ddlUsersToRemove);

if (selectedUserRemove != null)
{
txtRemoveName.Text = selectedUserRemove.Name;
ddlRemoveRights.SelectedIndex =
Convert.ToInt32(selectedUserRemove.Advanced);
}
}

After page loading and after first DropDownList value change
everything is ok but after every next change nothing happens :( While
dubugging TextBox text and DropDownList selectedIndex are changing but
no change is visible on interface.

Please help me :)

May 8 '07 #1
0 3945

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to...
0
by: angiemc | last post by:
Hi, I have a question about AJAX and ASP.Net controls. I'm working on a system that requires pages to be generated dynamically based on XML to provide the layout (eg text boxes, dropdowns, save...
3
by: fran_j_diaz | last post by:
Hye, I've got some problems in developping web sites with Visual Studio 2005 (ASP.net & C#) and the Microsoft Ajax library. In my webpage default.aspx
3
by: =?Utf-8?B?T2xlZw==?= | last post by:
(in .NET 2.0 with AJAX extensions) I have an UpdatePanel on the form. Now I want to use a link outside of my UpdatePanel to make it to update (asynchronously) and also send some(at least one )...
0
by: db007 | last post by:
I have a problem at the moment with a web project. I have two Panels within an UpdatePanel on an aspx page (using Masterpages). I'm using ASP.Net 2.0 with an AJAX enabled website. The two...
0
by: Barno77 | last post by:
Hi Everyone, I have a Gridview in a UpdatePanel and everytime I click Edit button to edit a row of data in Gridview, the page refreshes. Would like to not Refresh page everytime! Any...
4
by: pechar | last post by:
Hi All, This question has been asked many times and I've checked most of the sites with resolutions. None worked for me. 1) I have a page which is a content page to a Masterpage . 2) I have a...
4
by: Peter | last post by:
ASP.NET 3.5 I have a web page and this web page has a DataList, when user hovers the mouse over a picture in the datalist a popup appers, this popup is a User Control and it has a cancel button....
2
by: qwedster | last post by:
Folks! The following is a "Hello World" kind of code for ViewState. I just want to know how to retain the ViewState 1) while Page Refresh when using UpdatePanel and also 2) While I reverting back...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.