473,738 Members | 7,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Call javascript:__do PostBack from another .NET page

1 New Member
I have a gridview that has a ButtonField(Ins ert) that calls a detailsview which allows you to insert data to the gridview. The postback for this buttonField is:
"javascript:__d oPostBack('ctl0 0$POPAContentPl aceHolder$grdRe marks','Insert$ 0')", which takes me to the details view and were I click on a 'New' link with it's postback:

"javascript:__d oPostBack('ctl0 0$POPAContentPl aceHolder$grdRe marks$ctl01$Det ailsView2','New $0')"

How can I call the "javascript:__d oPostBack('ctl0 0$POPAContentPl aceHolder$grdRe marks$ctl01$Det ailsView2','New $0')"
from another page. So page1.aspx has the gridview with the detailsview. How can I call from page2.aspx the details view of page1.aspx, "javascript:__d oPostBack('ctl0 0$POPAContentPl aceHolder$grdRe marks$ctl01$Det ailsView2','New $0')".
May 4 '07 #1
0 2274

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1208
by: ruca | last post by:
Hi, I have a Login page with UserName and Password controls Then I have a button named Login. When I click the button I want to call another ASPX page. How? (of course before that I verify user and password, this I already have) --
3
5917
by: Nikhil Patel | last post by:
Hi all, I have developed a web page with a sortable DataGrid with Select button column in ASP.Net. It works fine in inernet explorer. The purpose of the web page is to display it in a third party application. When I try to open my page in that application, it loads fine. But when I click on any of the link buttons to sort or select rows, it opens up a new blank internet explorer window. Its address bar contains the following text:...
1
1235
by: Ed | last post by:
I would like to call another on_click procedure but fail... e.g. Sub try() call button2_click() ' what should i put in (??, ??) since I don't know the source and asg... in order to call button correctly End Sub sub button2_click( source as object, asg as ...) ....
0
1918
by: Steve Richter | last post by:
ok, I admit I dont know what I am doing ... When a user clicks on a <tr> in a <table> I want the page to be posted back to the server with info as to what row was clicked. <tr style="background-color:ffecd8" onmouseover="this.style.backgroundColor='#ffdcff';" onmouseout="this.style.backgroundColor='#ffecd8';" onclick="javascript:__doPostBack('row1')">
2
1323
by: Progman | last post by:
Id like to call another aspx page from a script area from a procedure. the only way i found is: Me.Controls.Clear() Server.Execute("AnotherPage.aspx) Is there a better way?
4
5017
sanjay123456
by: sanjay123456 | last post by:
Sir I want to call another php page in to a php page <?php if($counter==$_SESSION) { <form name="examination" id="examination" method="post" action="http://localhost/finish.php" >
3
4646
by: rizzy | last post by:
Hello, I have an address form which has a select box with countries and another select box with provinces. When I select a certain country I cause a postback by using javascript __doPostBack function. I also have a submit button. It works perfectly in both firefox and IE when I click on selectbox and select a country - it posts back and then on page load I populate the provinces based on the country just selected. - EXCEPT: when I...
1
3109
by: Batmaninls | last post by:
I have this code e.Cell.Controls.Add(new LiteralControl("<br /><a href=\"javascript:__doPostBack('Caledar1','" + dtEvent.ToShortDateString() + "')\"><img src=\"" + ResolveClientUrl("~/Administration/Images/Site/goldSquare.gif") + "\" border=\"0\" /></a>")); I need to fire at event on the code behind is there a way to do this?
5
4860
by: Warren Tang | last post by:
Hello, Does C++ allow a constructor to call another constructor of the same class? (I am focusing on the language abilities. I know the C# language allow this.) The following sample can explain this question more clearer: class MyClass {
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.