473,410 Members | 1,953 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,410 software developers and data experts.

update panel,gridview and update progress

There is a update panel,gridview and update progress. fetching the data from database and filling in gridview. at the time of processing update progress is working and showing processing........
My problem is : when once data is not found and i display in emptydatatext="no result" and again i search something, then updateprogreee shows processing...........as well as "no result" is displayed. I want to remove this "no result" as returned by prior search and creates confusion.
How to do that,guide me.
thks
Mar 24 '08 #1
6 4090
Frinavale
9,735 Expert Mod 8TB
There is a update panel,gridview and update progress. fetching the data from database and filling in gridview. at the time of processing update progress is working and showing processing........
My problem is : when once data is not found and i display in emptydatatext="no result" and again i search something, then updateprogreee shows processing...........as well as "no result" is displayed. I want to remove this "no result" as returned by prior search and creates confusion.
How to do that,guide me.
thks
For the control that causes the update to happen add an "onclick" event (or the appropriate JavaScript event for the control that you're using) which calls JavaScript that sets your emptyDataText="".

Eg
Expand|Select|Wrap|Line Numbers
  1. myBtnThatDoesUpdate.Attributes.Add("onclick","document.getElementById('" + emptyDataText.ClientID + "').innerHTML=""" + " """ + ";")
  2.  
The JavaScript
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('emptyDataText').innerHTML=" ";
Will set the emptyDataText to be " " when you click the button...this will remove your message.

Be sure to also reset your emptyDataText="" in your server side code (because the text may be saved in the ViewState and redisplayed upon posting back).

Cheers!
-Frinny
Mar 24 '08 #2
thks for reply.

is there any onclick method of collapsible panel extender? currently, I put imagebutton on it and on click of that button I am handling event but just wondering if I can do that on the click on panel extender itself?

thks
Mar 24 '08 #3
Frinavale
9,735 Expert Mod 8TB
thks for reply.

is there any onclick method of collapsible panel extender? currently, I put imagebutton on it and on click of that button I am handling event but just wondering if I can do that on the click on panel extender itself?

thks

I don't think that the CollapsiblePanelExtender has an "onclick", however the image (or other control) that you are using to collapse and expand the panel does. Apply it to that control and see what happens (I've never tried this before).

-Frinny
Mar 24 '08 #4
thks Frinny
you helped me a lot

I also didn't find click event, tht's y asked. handling event with putting imagebutton on it.

thks
Mar 24 '08 #5
Frinavale
9,735 Expert Mod 8TB
thks Frinny
you helped me a lot

I also didn't find click event, tht's y asked. handling event with putting imagebutton on it.

thks
Did it work?
Did you apply the onclick to the ImageButton?

-Frinny
Mar 24 '08 #6
Yes, I applied on onclientclick event.
Mar 25 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In...
0
by: shapper | last post by:
Hello, I created an update progress at runtime including the progress template. When the postback is made I can see the update progress but the update panel content is also visible. I...
4
by: ccshine | last post by:
I have several textboxes, a gridview and an image in a panel that need to be updated based upon info entered into a textbox. Everything works like a champ when I don't use the Atlas UpdatePanel,...
1
by: gabe | last post by:
How do you call a client side javascript callback method after an update panel has posted back to the server? I have two update panels (A + B) with a gridview in each panel. GridView B has a...
5
by: HockeyFan | last post by:
We have an update panel that has a gridview with checkboxes and other items in each row. We went to the RowCreated event in the codebehind, to set an attribute on a checkbox in each row, to...
0
by: hetalupadhyay | last post by:
hi i take one update panel nd put inside gridview when i click print button no operation perform and when i remove update panel then it work perfectly so wht i do?.................to solve this ...
0
by: AdonisL81 | last post by:
Hello, I am new to .NET I am having trouble with a asp update panel and Gridview. The Gridview control is inside the update panel and I am trying to have the gridview update from a form button....
11
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know...
4
by: BiffMaGriff | last post by:
Hello, I have a GridView that I put inside an update panel. I have a control that attaches to the datasource of the gridview that filters the data, databinds the gridview and then updates the...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.