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.