doPostBack and Object Expected

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have developed a user control with two grids (third party product). I am
calling the "__doPostBack" function whenever a row of a control is selected:

__doPostBack(\" + this.ClientID + "_" + grd.ID + "\", \"\"); \n")

The postback occurs, but when the page is reloaded I see the error message
"Object Expected." I think it is because of the first parameter of the
function (eventTarget), but I don't know what to pass, since everything I
tried did not work. It looks like there is a "split" and "join" on a "$" and
":" characters.

Does anyone have any idea on the correct string that I need to pass to
"eventTarget" ?

Thanks.
Mike
 
don't generate the string yourself call:

GetPostBackEventReference()

this also tells .net to generate the client side __doPostBack function.

-- bruce (sqlwork.com)
 
It did not help. I still see the same error message and also have a warning
about security issue due to the Postback.

Any other solution?

Thanks.
Mike
 

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

Back
Top