Programatically Force the __doPostBack Function

G

Guest

Hello.

I'm maintaining a C# Web based project that has a class which adds a "Show
All" / "Show By Page" functionality to a datagrid that allows paginating.
This class works when there are controls on the form that do a postback but
does not work when there are none. When there is a postback control I can see
the __doPostback function in the html source code. When there isn't one it's
not there and I need to add the __doPostBack function programtically. I tried
adding the __doPostback function using Javascript but got an error on the
page.

Since I don't have a form associated with this class how can I force the
__doPostBack function to be generated?

Any suggestions will be greatly appreciated.

Rita
 

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
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top