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

Call of progress bar on selected events

maliksleo
115 100+
hi

I have an update panel having linkbuttons, dropdowns, buttons, gridview etc.

And i have a progress bar having <DIV>.

on every event that <div> is shown,

But

I want that it only shows when linkbutton is clicked.

And my linkbutton is situated inside the gridview.

thanks in advance
maliksleo
Apr 17 '09 #1
9 3207
Frinavale
9,735 Expert Mod 8TB
Instead of using a progress bar use JavaScript to display the <div> when the LinkButton is clicked (set the client onclick = A JavaScript function that displays the <div>

You can do this using animations if you want to.
Apr 17 '09 #2
maliksleo
115 100+
@Frinavale
how i can do this though animation?

but i want to do this with the progress bar please tell me any solution if any

maliksleo
Apr 18 '09 #3
Frinavale
9,735 Expert Mod 8TB
When you use an UpdateProgress control, it will appear every time the UpdatePanel it's associated with is involved with an Ajax Call the server.

If you don't want it to appear every time then you should not use the UpdateProgress control.

At the time that I answered your question I thought the UpdateProgress control was part of the Ajax Control Toolkit. Are you using the Ajax Control Toolkit in your application? Animations are not available without this toolkit....


If you're not using the Ajax Control Toolkit consider implementing JavaScript function to handle the PageRequstManager's BeginRequest and EndRequest events (info on the BeginRequest Event can be found here and info on the EndRequest Event can be found here.


You would have 2 JavaScript functions that handle these events:
Expand|Select|Wrap|Line Numbers
  1. function BeginRequestHandler(){
  2.    'code that displays the <div> during updating
  3. }
  4. function EndRequestHandler(){
  5.   'code that hides the <div> when not updating.
  6. }
The PageRequestManager has a Singleton pattern. You get a reference to the PageRequestManager using the getInstance() method. Once you have this reference you can tell it to execute the JavaScript methods when the request begins and ends:

Expand|Select|Wrap|Line Numbers
  1. Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);               Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
-Frinny
Apr 20 '09 #4
maliksleo
115 100+
@Frinavale
Yes i am using AJAX control toolkit and how i can use the animation for this?
And thanks for your help Frinny

maliksleo
Apr 21 '09 #5
Frinavale
9,735 Expert Mod 8TB
Write the animation for an UpdatePanelAnimation extender.

When implementing your Animation, use the ScriptAction to specify when to run the animation.

-Frinny
Apr 21 '09 #6
maliksleo
115 100+
Thanks Frinny for your kind help but in case of updatepanel animation i am unable to use the onupdating tag inside the animation tag can you help me in this by providing some sort of sample code.
As i saw on asp.net site the onupdating tag is mentioned but when i actually applied to my page i am getting compilation error on it.
Waiting for your reply

maliksleo
Apr 22 '09 #7
Frinavale
9,735 Expert Mod 8TB
Please post the compilation error that you're getting.
Apr 22 '09 #8
maliksleo
115 100+
@Frinavale
I dont know what it is? last day before posting to this thread i was getting copmilation error on <onupdating> tag but, today i am not getting this error instead my page is working quite well i dont know how?

any how thanks for your help Frinny

just tell me one more thing in this that how i can use this animation on only one control say gridview in the updatepanel as i am not getting any auto complete help in side the animation and onupdation tags even though i pressed ctrl + space.

Expand|Select|Wrap|Line Numbers
  1.  <OnUpdating>
  2.                <Fadein Duration="1.0" Fps="3" />
  3.           </OnUpdating>
i am using this examplary code instead i want to use like this

Expand|Select|Wrap|Line Numbers
  1.  <OnUpdating>
  2.                "Fadein my gridview"
  3.           </OnUpdating>
how i can do this?

maliksleo
Apr 23 '09 #9
Frinavale
9,735 Expert Mod 8TB
Hmmm.

Well without trying to figure out how to do this using JavaScript...consider placing your GridView into it's own UpdatePanel and setting an animation for that UpdatePanel.
Apr 23 '09 #10

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

Similar topics

16
by: Paul | last post by:
i have been working with vb6 for a while but never had the pleasure of using progress bars. That is until now, one of the programs i have written has just been modified so that large csv files of...
0
by: Brendan Smith | last post by:
There's a point in our ASP.NET application where we fire off a web service asynchronously on post-back, then monitor the progress of the web service until it completes. While the service is...
1
by: smash2004 | last post by:
I want to keep selected values in select list when i click on another option...with a click on a mouse... if i have 3 options in select list and i click first option..it gets selected..if i then...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
0
by: David Gosche | last post by:
I have a form which is calling the DTS process and then a separate class which handles the DTS events. I want the DTS event OnProgress to update a ProgressBar on the Form. Does anyone know how I...
2
by: Jack Addington | last post by:
I am working on app that currently all resides on the same machine but plan to pull the database off and try to move all the datafunctionality to a remote machine. I have a data function that is...
8
by: Dino M. Buljubasic | last post by:
I am trying to create a pop up progress bar (on a form) that would show progress from downloading files from an FTP server. any help will be appreciated
11
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
4
by: Manikandan | last post by:
Hi, I'm working with XML serialization. I'm writing a xml file of huge size(above 500MB) I need to show the user the progress of writing to file using progress bar. For this i need to create 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
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?
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
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
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
jinu1996
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...
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
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...

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.