manual call to FormView1_PageIndexChanging

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
 
A

Angel

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?
 
R

rodchar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,184
Messages
2,570,973
Members
47,528
Latest member
AnaHawley8

Latest Threads

Top