473,405 Members | 2,421 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,405 software developers and data experts.

Call javascript:__doPostBack from another .NET page

I have a gridview that has a ButtonField(Insert) that calls a detailsview which allows you to insert data to the gridview. The postback for this buttonField is:
"javascript:__doPostBack('ctl00$POPAContentPlaceHo lder$grdRemarks','Insert$0')", which takes me to the details view and were I click on a 'New' link with it's postback:

"javascript:__doPostBack('ctl00$POPAContentPlaceHo lder$grdRemarks$ctl01$DetailsView2','New$0')"

How can I call the "javascript:__doPostBack('ctl00$POPAContentPlaceHo lder$grdRemarks$ctl01$DetailsView2','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:__doPostBack('ctl00$POPAContentPlaceHo lder$grdRemarks$ctl01$DetailsView2','New$0')".
May 4 '07 #1
0 2161

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

Similar topics

1
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...
3
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...
1
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...
0
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...
2
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
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" ...
3
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...
1
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=\"" +...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.