JavaScript Trigger the button.click event From another page trigger button click on enter,trigger button click jquery,trigger

I am trying to trigger the button.click event of the page 1 from Popup page.
There is Grid-View in Page 1 with the edit button for each row. when the button is clicked the popup page is opened.
User can Save or cancel the edit page.
Cancel will close the popup page "Using JavaScript".
Save will update the database and then close the popup page.
When the popup page is closed the Grid-View in page 1 should be update with the new data. which i am doing by

protected void Button2_Click(object sender, EventArgs e)
{
    GridView1.DataBind();
}

But my problem is how can i call this button.click event from the popup page ??
Or Is there anyway that i can update the Grid-View in page 1 with out reloading the page ?? Sorry for English "mistake"
Thank you

Answer:1

I am trying to push only distinct value in jQuery. But it is not working var arr = []; for (var i = 0; i < a.length; i++) { if (arr.indexOf({ A: a[i].City }) == -1) ...

I am trying to push only distinct value in jQuery. But it is not working var arr = []; for (var i = 0; i < a.length; i++) { if (arr.indexOf({ A: a[i].City }) == -1) ...

What does the following line do? (flag)?flag=false:flag=true; In this piece of code: var flag = true; function resize() { if(flag) { document.getElementById("centerimg")....

What does the following line do? (flag)?flag=false:flag=true; In this piece of code: var flag = true; function resize() { if(flag) { document.getElementById("centerimg")....

Is there in the world any compiler for a simple functional language such as that defined on this article, or maybe just Scheme or even ML for itself? That is, a compiler that will analyze the code for ...

Is there in the world any compiler for a simple functional language such as that defined on this article, or maybe just Scheme or even ML for itself? That is, a compiler that will analyze the code for ...

I'm working on a site for a client where he needs a countdown timer to count down to 10pm two days from each site update. (or however many days he wishes to enter) The countdown functions perfectly in ...

I'm working on a site for a client where he needs a countdown timer to count down to 10pm two days from each site update. (or however many days he wishes to enter) The countdown functions perfectly in ...