doPostBack and Object Expected

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
 
B

bruce barker

don't generate the string yourself call:

GetPostBackEventReference()

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

-- bruce (sqlwork.com)
 
G

Guest

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
 
Joined
May 16, 2007
Messages
1
Reaction score
0
DoPostback query

Hi Mike
I have encountered a similar problem and would like to know how you got around it.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top