__doPostBack() not generated

G

Guest

I checked the rendered html and found __doPostBack() function was not found
in the html source. Is there a reason? How do I force it to be generated.
The page seems to function properly for post back but I DO need the
__doPostBack() function to post back by a child popup window.
 
A

Anthony Merante

Hey steve,

The framework will only add that section of code for controls that need to
postback such as Asp:buttons, linkbuttons, dropdownlists that have
autopostback=true, etc.

You can add that bit of code to your page by using the Page's
GetPostBackClientHyperlink. That allows post back processing of your control
on the server.

Page.GetPostBackClientHyperlink(Control,"");

HTH,
Tony
 
G

George Ter-Saakov

__doPostBack only generated if you have controls like LinkButton.
You can dump it on a form and surround it with <!-- your link button
here -->
So people will not see it.

George


Munawar Hussain said:
hi,
From a child you can call .. window.opener.forms[0].submit();

or
window.opener.forms[0].myFunction();

in parent page

<JS>
function myfunction()
{
__doPostBack();
}
<JS>
Steve Wonderful said:
I checked the rendered html and found __doPostBack() function was not
found
in the html source. Is there a reason? How do I force it to be
generated.
The page seems to function properly for post back but I DO need the
__doPostBack() function to post back by a child popup window.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top