469,282 Members | 2,021 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

__doPostBack() not generated

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.

Mar 14 '06 #1
3 2557
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
"Steve Wonderful" <St************@discussions.microsoft.com> wrote in
message news:F1**********************************@microsof t.com...
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.

Mar 15 '06 #2
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" <St************@discussions.microsoft.com> wrote in
message news:F1**********************************@microsof t.com...
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.

Mar 16 '06 #3
__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" <mu*******@msn.com> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
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" <St************@discussions.microsoft.com> wrote in
message news:F1**********************************@microsof t.com...
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.


Mar 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Randy | last post: by
1 post views Thread by paul reed | last post: by
3 posts views Thread by rezas | last post: by
reply views Thread by AJP | last post: by
6 posts views Thread by GaryDean | last post: by
1 post views Thread by Philip | last post: by
reply views Thread by =?Utf-8?B?Uml0YUc=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.