Call javascript:__doPostBack from another .NET page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codeshelp
    New Member
    • May 2007
    • 1

    Call javascript:__doPostBack from another .NET page

    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')".
Working...