Welcome Guest Search | Active Topics | Sign In | Register

example Options
Patrick Beverloo
Posted: Thursday, July 5, 2007 7:28:29 AM

Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 42
Please can you help me with a example,

I have a page with a filter (input asp:textbox) a filter button (asp:imagebutton with a onclick event)
On the click event I execute a function that returns a SqlDataReader to the repeater, on the itemdatabound I set a clientside onclick event to a asp:images (window.location='xxxx';)
when somone clicks on the images the page new while open in the current window.


Now my question is:
I whant to use the callback panel on the filter event to show the progress bar and also when the images is click on the repeater.


I tryed some stuff but it hust won't do it and the example in the install file are not helping here.

Patrick Beverloo
OfficeSpecialisten www.OfficeSpecialisten.nl




eo_support
Posted: Thursday, July 5, 2007 8:34:21 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
hey, Patrick

You are using C#, right? Let me have a try and will let you know when I figure out some ways :)

Thanks.
eo_support
Posted: Thursday, July 5, 2007 10:34:04 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
hi, Patrick

I am trying to undersatnd what you want to do.
Basically, you are trying to do a, like a search page with textbox to enter some keyword, and an imagebutton which might be submit or search or something. Once user clicks on the imagebutton, you will go to server to create the datasource and bind the datasource to repeater contorl. Right?
You are trying to use callback panel and progress bar to show the reapter's filling progress, right?
If this is what you want to do, here is the steps:
1. Drag the Progressbar control into your Callback Panel
2. Set the ImageButton as the Trigger of Callback Panel.
3. Once user click Imagebutton, it will fire the Callback Panel server event. The handler will be something like this:
Code: C#
protected void CallbackPanel1_Execute(object sender, 
                                           EO.Web.CallbackEventArgs e)
    {
        //In here, get the filter value
        string strKeyWords = this.textbox1.Text;
        //Do the database query and get the datasource
        // .......
   
        this.Repeater1.DataSource = xxxx;
        this.Repeater1.DataBind();
    }

4. Once it starts to bind data, it will fire ItemDataBound event. In this event handler, you can just set the progressbar progress value.
Code: C#
protected void Repeater1_ItemDataBound(object sender, 
                                               RepeaterItemEventArgs e)
    {
        //Here set progress bar value, something like this
        this.this.ProgressBar1.Value += 10;
    }


Is this want you want to do? Hope it helps.
Thanks.
Patrick Beverloo
Posted: Friday, July 6, 2007 1:21:30 AM

Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 42
tnx, I will try it and get back to you.

Patrick Beverloo
OfficeSpecialisten www.OfficeSpecialisten.nl




Patrick Beverloo
Posted: Monday, July 9, 2007 8:16:32 AM

Rank: Advanced Member
Groups: Member

Joined: 5/30/2007
Posts: 42
I repleced to propgressbar with a image, but tnx for the example. now the callback work beter

Patrick Beverloo
OfficeSpecialisten www.OfficeSpecialisten.nl






You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.