473,405 Members | 2,210 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,405 software developers and data experts.

Using Atlas with DropDownList (ASP.NET 2.0)

Hi all.

I am creating a web site, in which I would like to use Atlas.

I created an user control (Test1), in which there is a DropDownList
with some values. I set AutoPostbackProperty of this DropDownList to
true. In addition I created new event (TestEvent), which is fired when
selection is changed in DropDownList.

Then I placed this user control on my another page, in which I have
GridView, which displays some records from DB based on selected value
in DropDownList. I added UpdatePanel to the source, so only GridView
would be updated.

The problem is that when I select some value in DropDownList, then
whole page blinks. I think it is connected to AutoPostbackPropety. I
would like to eliminate this blinking.

BTW: When I set AutoPostbackProperty to false, then changing value in
DropDownList does nothing, but then clicking on some button causes that
everything works fine. It would be ok, but I don't want my users to be
forced to click some button after selecting some value.

Here is my code:
<atlas:ScriptManager ID="scriptMan" runat="server"
EnablePartialRendering="true">
</atlas:ScriptManager>
<uc1:Test ID="Test1" runat="server" />
&nbsp;
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
<atlas:UpdatePanel ID="up" runat="server" Mode="conditional"
RenderMode="Inline">
<Triggers>
<atlas:ControlEventTrigger ControlID="Test1"
EventName="TestEvent" />
</Triggers>
<ContentTemplate>
GridView is here
</ContentTemplate>
</atlas:UpdatePanel>

Thanks in advance,
Piotrek

Jul 20 '06 #1
3 1275
Anybody?

Jul 21 '06 #2
You may want to set the AutoPostBack property to false. The idea with Atlas
is to avoid a postback and to use the facilities of the XMLHttpRequest object
in javascript to perform a "partial postback" to the server and avoid the
full refresh of the page as evidenced by the blinking to which you refer.
The idea is to refresh only those controls affected by the call through
XMLHttpRequest.

Hope this helps.

Good luck,
Eagle

"Piotrek" wrote:
Anybody?

Aug 20 '06 #3
Oh, yes. Have you added a client-side event handler on your dropdownlist to
respond on the client side to your selections? It is in that handler that
you should be able to get the behavior you are seeking.

Eagle

"Ea******@HighFlyingBirds.com" wrote:
You may want to set the AutoPostBack property to false. The idea with Atlas
is to avoid a postback and to use the facilities of the XMLHttpRequest object
in javascript to perform a "partial postback" to the server and avoid the
full refresh of the page as evidenced by the blinking to which you refer.
The idea is to refresh only those controls affected by the call through
XMLHttpRequest.

Hope this helps.

Good luck,
Eagle

"Piotrek" wrote:
Anybody?
Aug 20 '06 #4

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

Similar topics

5
by: Papanii Okai | last post by:
Hi Guys, As we wall know Atlas is a fairly new feature everyone is talking about (atleast at my school). Even though the idea of Ajax has been used in the past i was wondeing if anyone could...
1
by: majorone | last post by:
hello, i am new to atlas and trying to use it on my user control. but after i implemented the following code, i have got a error in yellow page: "MaintainScrollPostition is not supported on pages...
7
by: pamelafluente | last post by:
The precious input given by Laurent, Martin, Benjamin about XMLHttpRequest in Javascript, has made me think that perhaps I could improve what I am currently doing by using Ajax. Let's make it...
4
by: s.bussing | last post by:
Hi All, I'm new to Atlas and I did some programming using AJAX, but I'm wondering if it is possible to hava a javascript which can call a server-site function, in my case to write data to the...
3
by: Robert Scheer | last post by:
Hi. I think I have some conceptual questions here. I have an asp.net web application up and running and now I intend to use Atlas on some of my pages. I have read that after installing Atlas, I...
1
by: jmdolinger | last post by:
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all...
0
by: Ted Ngo | last post by:
I am try to use the Atlas Here is my example: <<atlas:ScriptManager ID="S1" runat="server" /> <div> <table id=tbl1 runat=server border=0 width=100%> <tr> <td width=20% class=lbltxt>...
9
by: RBM007 | last post by:
Hello, I have created some pages in the (old) Atlas pages and migrated to AJAX version. After the update I noticed that any page containing ASP.NET AJAX won't compile anymore. Even if the same...
0
by: RBM007 | last post by:
Hello, I have created webpages in the atlas standard. To help my users, I automaticaly focus to the first editable control which is in a GridView kind control. Every gridview is placed in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.