Strange problem...
Have a gridview on a page (within an update panel) for displaying
event dates.
GridView loads fine first time around with the PageLoad.
There are 2 text fields a user can use to enter a new new. Upon
clicking the "Add Button" these are added to the database, the
gridview refreshes its datasource and the GridView is reloaded through
the UpdatePanel to show the extra row.
HOWEVER, when the update panel refreshes it now shows TWO grids, on
top is the new one with the extra row, and beneath is the original
with the rows from the initial page loads. Any subsequent dates that
are added are put into the first grid fine but the second beneath
always remains on the page with the original rows from the first page
load.
Any ideas why this might be?? 1 3120
It has to do with how you are binding the grid. Most likely you are using
Page_Load to initially fill the grid and then rebinding with the asynch AJAX
call. If so, you are creating a grid and then creating a second one. If both
are done via the "same channel" (same way of filling the grid) you should be
fine. Without seeing code, I can only guess.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"Gearóid" <gh****@gmail.c omwrote in message
news:11******** *************@t 8g2000prg.googl egroups.com...
Strange problem...
Have a gridview on a page (within an update panel) for displaying
event dates.
GridView loads fine first time around with the PageLoad.
There are 2 text fields a user can use to enter a new new. Upon
clicking the "Add Button" these are added to the database, the
gridview refreshes its datasource and the GridView is reloaded through
the UpdatePanel to show the extra row.
HOWEVER, when the update panel refreshes it now shows TWO grids, on
top is the new one with the extra row, and beneath is the original
with the rows from the initial page loads. Any subsequent dates that
are added are put into the first grid fine but the second beneath
always remains on the page with the original rows from the first page
load.
Any ideas why this might be?? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: davidjgonzalez |
last post by:
I have a GridView that has paging enabled. Each item (as defined in an
ItemTemplate) includes several controls which have operations i would
like to Atlas-enable. Everything is working well except when I page the
GridView (the paging controllers are in the gridview's footer). The
webpage doesnt scroll back to the top of the page, so when paging
through the GridView the user is always looking at the last 4-5 items
on the page. My current...
|
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 javascript, nothing really having
to do with ASP.NET...
I'm attempting to put together an application that consists of several
GridView controls each bound to some xml data. Each table exists in
its own update panel. The two effects I'm going for are:
|
by: Reinhard |
last post by:
Hi,
Need some directions on Ajax, UpdatePanel and Gridview to achive the
following:
I like to show a Gridview with Data ONLY if the user is interested in
Details, but without a full page reload!
If the page loads, only a summary (eg. COUNT of recs) should be
displayed
|
by: jrnail23 |
last post by:
I have a user control which contains an UpdatePanel, which contains a
MultiView inside, with a GridView in one of the views.
In my GridView, I have a ButtonField which is supposed to trigger a
server-side operation, using the RowCommand functionality.
In IE, this all works great, but in Firefox (v2.0.0.6), clicking the
above mentioned ButtonField fires off two similar AJAX requests, which
is causing errors in my server-side code.
...
|
by: SachinSachin |
last post by:
Hi All,
I am implementing a custom gridview control, that emits some javascript to blink a row whenever a new row is added in gridview. The gridview is inside the <asp:updatepanel> for parital page rendering. The problem is when I put the gridview inside the updatepanel, I don't see the HTML table that is created as a result from rendering the gridviewcontrol and thus when new row is added, it does not blink, however when i just put the...
| |
by: foolmelon |
last post by:
Before AJAX, we were able to focus a cell in a gridview during a
fullpage postback. After putting the gridview inside an UpdatePanel,
we cannot focus a cell in this gridview anymore. Does anybody know if
it is possible to make such focus? Thanks!
Bill
|
by: Peter |
last post by:
I want to call a JavaScript on PageIndexChanged event, how do I do that?
Thank You
Peter
|
by: SAL |
last post by:
Hello,
I'm trying to include a popup in the ItemTemplate of a gridview row. The
ItemTemplate for the field contains a textbox and when the user clicks in
the textbox I want a popup panel to show allowing the user to make a
selection from the popup window. I have enabled AJAX extensions and have a
working sample outside of a gridview. However, when I click in the textbox
of a gridview row, all I see is a really small square instead of the...
|
by: Nick |
last post by:
Hi there,
I have a GridView in an UpdatePanel, each time the UpdatePanels Load
event fires I set the DataSource and call DataBind of the grid view. This
works great once, I add an item to the list and the control updates, my
breakpoints get in in the UpdatePanel Load event. Only problem is on the
second time, even though the code is executed, the GridView doesn't change.
I have disabled the view state for the grid view but still the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |