manual call to FormView1_PageIndexChanging

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,

is there a way to call FormView1_PageIndexChanging manually and pass it a
specific index i want to go to?

thanks,
rodchar
 
you can drop a button and a textbox on the page then on the button click
event do the following

FormView1.PageIndex = Convert.ToInt16(TextBox1.Text)
FormView1.DataBind()

it implies that the textbox has the page you want to go to.

In my opinion, PageIndexChanging is not the appropriate place for this.
Unless I misunderstood your question.

Regards,


Are you trying to create your own custom paging?
 
i have a dropdownlist that exists in my pagerTemplate. it contains all the
records of the formview's datasource. i'd like the 2 objects to be in sync.
 
Back
Top