|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Hello,
I want to use the Progress bar in my project. Progress bar start when user click Image button used in the Gridview Template.
So please tell us what i need to define for Triggers="{ControlID:cbSkin;Parameter:}" If i used the Imagebutton1 then it shows Trigger control 'ImageButton1' for Callback 'cpPB' does not exist. This Imagebutton1 i have added in Template of Gridview.
I also want user can not click any button still Progressbar is running.
Thanks,
Mehul
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
The Trigger control and the CallbackPanel must be in the same INamingContainer. In this case the Grid and the CallbackPanel are inside the same INamingContainer, but the ImageButtons are inside their own INamingContainer. You can either use the Grid as the trigger (thus every server event the Grid raised will trigger the CallbackPanel, not just the ImageButton), or use JavaScript to trigger the callback.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Hello,
If i used Grid as trigger then paging effect also called the same, i dont want the same effect for paging event.
I will check with JavaScript, if you have any example for the same then please share with me.
Thanks,
Mehul
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You can take a look of the CallbackPanel documentation and samples. You will find JavaScript samples there.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Hello,
Thanks for the quick reply.
I have used the same way i am getting error message Eo.Web Controls client side debug message. Eo.web control 'ct100_contentplaceHolde1_callbackpanel1' error messag. The callback on has failed because the server did not recognize this callback and processed it as a normal request.
Actually I am creating one file on Imagebutton click event at server side. After process finished i am downloading to client with following code.
Response.Clear() Response.AddHeader("content-disposition", "inline;attachment; filename=" + FI.Name) Response.AddHeader("Content-Length", FI.Length.ToString()) Response.ContentType = "application/octect-stream" Response.WriteFile(FI.FullName) Response.End()
So i am getting the error message. Can you please guide me how to do the same.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You just can not do that ---- you can not do an attachment download through an AJAX callback. Any AJAX call has to be HTML in and out.
Thanks
|
|