473,320 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

__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 2675
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Randy | last post by:
Does anyone know of a situation where the "__doPostBack" function would not be auto-generated for your ASPX page? (ie. when the ASPX page is rendered in IE and you do a View Source, the...
1
by: paul reed | last post by:
Hello, I am having some weird behavior between two machines...one which is running the 1.1 framework and one which is running 1.0. After opening a child form from a parent...I update the...
3
by: E | last post by:
I have 2 aspx pages... neither of which do anything out of the ordinary. One of the pages automatically generates this block of code when viewed at the client:...
3
by: rezas | last post by:
Anybody has come acros this before One of my pages, stop generating the __doPostBack at runtime? It was working before, but VS locked up. Has to kill it and restart it and now it has this problem? ...
0
by: AJP | last post by:
I have a child window which does the following after a button is pressed: Response.Write("<script>window.opener.__doPostBack('','');</script>"); but I get the following uncaught exception upon...
0
by: AJP | last post by:
I have a child window which does the following after a button is pressed: Response.Write("<script>window.opener.__doPostBack('','');</script>"); but I get the following uncaught exception upon...
6
by: GaryDean | last post by:
below is the html of two dropdownlists as they are rendered. The first was created with Postback = false and I added the onchange="myFunction('DropDownList1,'') in code. I made this look very...
1
by: Philip | last post by:
I am attempting to use the ASP.NET generated __doPostBack JavaScript function in my custom JavaScript and I can use it successfully but only after the web page is loaded and idle. I prefer to...
0
by: =?Utf-8?B?Uml0YUc=?= | last post by:
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.