Web Forms :: Call Server Side Function Of Parent Page From Popup Page?

Mar 24, 2011

I open a pop up page(child page) by using jquery(jquery.colorbox.js) in asp.net application. now when I click on search button I want to close the pop up page(child page) and refresh the UpdatePanel1 by using search parameters. for above I need to execute server side function in parent page. code to close pop up:

child.aspx:
<script>
function closePopup() {
[Code]....

View 3 Replies


Similar Messages:

Possible To Call A Server-side Event On A Parent Page When A Child Page Closes

Jan 13, 2010

I have a parent page with two data controls. I want to be able to open a child window, do something on it, and when it closes I want to rebind only one of the two data controls on the parent page. I have the control I want to update within an UpdatePanel so would like to call rebind it and call UpdatePanel.Update().

View 2 Replies

Web Forms :: How To Call A Function Of User Control From The Parent Page

Nov 21, 2010

how to call a function of user control from the parent page?

I have a user control inside of default.aspx page, And I have a function in the code behind of user control. I need to call that function from a code behind of default.aspx

View 5 Replies

Forms Data Controls :: DataGrid's - Call A Server - Side Function On ItemDataBound Event Except Client - Side Function

Jan 10, 2010

I Getting A Problem In DataGrid's ItemDataBound Event. I Am Calling A JavaScript Function In DataGrid's ItemDataBound Which Retrun The CellIndex And RowIndex Number On Which UserClick After That I Am Re-Binding The DataGrid With jQuery Function After That ItemDataBound Event Not Working. I Want To Call The Same Function Again. Is Their Any Method To Call A Server-Side Function On ItemDataBound Event Except Client-Side Function..

View 4 Replies

Web Forms :: How To Call Client Side Function In Server Side

Apr 21, 2010

How could i call a javascript function in server side. I have to call the javascript function on the click of a linkbutton which inside a repeater control.

View 5 Replies

C# - How To Pass A Value From Server Side Page To Client Side Function

Jul 30, 2010

In my application I need to pass a string value from the server side(.aspx.cs) to a function in the client side (.aspx) page.

View 4 Replies

Call Javascript Function And Server Side Function From Linkbutton

Jan 27, 2010

<asp:LinkButton CssClass="button" ID="btnApply" runat="server" OnClick="btnApply_Click()" OnClientClick="Apply1('btnApply')" >
hi ihave this functin in .vb file
Protected Sub btnApply_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnApply.Click
end sub

and javascript function also in aspx

function ApplySummerization(id)
{
alert("hai");
}

View 4 Replies

How To Call UserControl Javascript When Parent Page Submits To Server

Sep 8, 2010

I have an asp.net usercontrol located on on my aspx page. In the usercontrol there is a javascript function that I would like to fire everytime the page that contains the usercontrol submits to the server. (directly before this happens) Ideally I prefer to not have to write any code in the parent to make this happen, but I am not sure what the usercontrol may be capable of at this time. Can the usercontrol know that the page is submitting to the server and fire the function before this happens? Is there some sort of event that takes place here?

View 2 Replies

C# - How To Call Server Side Function From Client Side

Jan 18, 2011

I have a web page having asp.net button control and textbox. I want a confirm message box, when someone changes the content of textbox and click on button. If user click on yes then event of button should fire other wise nothing should happen. All I want is to implement AJAX call back, but it is not working with ASP.NET button control.

View 5 Replies

Web Forms :: How To Call A Server Side Function Using Javascript

May 19, 2010

I have a function in Code Behind, Can any one let me know "How would I call this function using javascript"?

View 4 Replies

Web Forms :: Call JavaScript Function From Server Side

Jul 26, 2012

I have javascript function like below

function SetScrollEvent() {
            window.scrollTo(0, document.body.scrollHeight);
        }

I have button within update panel. 

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
  <asp:button onclick="" runat="server">
    </ContentTemplate>
    </asp:UpdatePanel>

On button click i want to call javascript.

View 1 Replies

Web Forms :: Tag Onclick Method Is Call Server Side Function?

Mar 12, 2010

<a href='#' id='edit' runat='server' OnClick='Edit(" + dt.Rows[j][0].ToString() + ")'>" + " Update " + "</a>

here Onclick called javascript but i want to called serverside function...what can i do (a href is Written from server side)

View 2 Replies

Web Forms :: Call JavaScript Function In Server Side Button Click Event

Feb 7, 2012

I want to call JavaScript function in Server side Button click event of ASP.Net Button ....

View 1 Replies

How To Call/execute Another Page From The Parent Page Without Disrupting The Flow Of Events

Mar 21, 2010

When a button/link is clicked, I want this URL to be called followed by the execution of the following statements. The ASP.Net page is in C# btw.

Function A
statement A
call abc.apsx
statement B

abc.aspx is a silent page, doesn't display anything on the page but creates an output.txt file. So when abc.aspx is called, output.txt file is created and Statement B is executed seamlessly.

View 3 Replies

How To Call Javascript Function From Server Side

Jul 3, 2010

How to call JavaScript function from server side

View 2 Replies

Web Forms :: How To Call A Javascript Function On A Master Page From A Content Page Control

Jan 24, 2011

I have a javascript function on my Master page, how do I access it with a dropdownlist of a content page. Not from codebehind, I can do that, but from the control itself such as the onSelectedIndexChanged event.

View 11 Replies

Web Forms :: How To Redirect To Another Page And Call Its Function From Source Page

Mar 13, 2011

I have 2 aspx page:

1>companyMaster(CM) 2>CompanyBranchMaster(CBM)

In CompanyMaster ihave a gridview (listing all companyBranches) with select,Update,Delete button on it.On clicking select of anyone row in gridview ,it should redirect to CompanyBranchMaster page and there is a funciton in it dbSelectGrid to show the details of that Branch in form.

CompanyBranchMaster page contains a form with all the required fields and gridview and its funcitons.

My Question is if user clicks on grid of CM then it can be redirected to CBM with Response.Redirect.But how to call the function dbSelectGrid of CBMs page.

View 5 Replies

Don't Want To Refresh The Parent Page And Popup Page?

Apr 28, 2010

i place the login control in updatepanel in that panel.incase of valid user it is ok,in case of invalid user the popupwind is refreshed,i don't want to refresh the parent page and popup page.

View 1 Replies

Javascript - OnBeforeUnload - How To Call A Server-side Function Without Ajax

Jul 22, 2010

What I want to do: dispose of a session upon detecting an "OnBeforeUnload" event in the client. I know it doesn't fire 100% of times (90% accuracy works fine for me)

Here I saw how to do it with ajax, this system, however, breaks down with ajax: I can't use it at all.

View 3 Replies

Web Forms :: Trying To Redirect Back To Parent Page From Popup

Mar 2, 2010

once i click on add button i just need to close the popup window and redirect the new page back to the parent, but what happened the page opens upwith the popup screen.

[Code]....

View 12 Replies

Javascript - Call A Server Side Function On Leave Event Of A TextBox?

Jan 10, 2010

I am building a user registration form in asp.net. I want to check if the username is available or not on the leave event of the TextBox. I am not able to get the Leave Event of the TextBox.

Should I use OnBlur event of the Html TextBox.

View 1 Replies

User Controls :: Call Function In Master Page From UserControl In Content Page

Jan 25, 2014

On MasterPage i have function below, how call this function on test.ascx  form on button click.

public void HideBtnLogin() { string session = Session["userCode"] as string; if (String.IsNullOrEmpty(session)) {
lbtnSignInTop.Visible = true; lbtnSignUp.Visible = true;
}
else { lbtnSignInTop.Visible = false; lbtnSignUp.Visible = false; } }

View 1 Replies

How To Set Value Of Parent Page's Frame From Popup

Jun 8, 2010

I want to set label's value from popup.But label is in frame and I dont know how to achieve it from popup. From parent page,i get this label by following javascript function.

But when I use this function in popup page, I cant find topframe.Do u have any solution about how to success it?

if (window.parent.document.getElementById('lbl'))
{
window.parent.document.getElementById('lbl').innerText = sender.getSelectedItem().get_text();
}
else
{
window.parent.frames['topFrame'].document.getElementById('lbl').innerText = sender.getSelectedItem().get_text();
}

View 2 Replies

Can Content Page Call A Function In Its Master Page

Jan 29, 2010

I have a site with a master page, Site.master. Many of Site.master's content pages have the same button that functions the same way on each page:

<asp:ImageButton ID="btn" runat="server" OnClick="btn_Click" />

Is it possible to write btn_Click once in Site.master's CodeFile and have it called in the OnClick attribute of each content page's button? I'm trying to avoid adding the same function (or anything at all) to each content page's CodeFile.

View 5 Replies

Web Forms :: Refresh DropDownList On Parent Page When Popup Child Updates Data Or It Closes

Jun 25, 2012

I have a web form that contains a dropdownlist which shows list of cities in it. I have an add button on click of which I am opening a Popup window to open a new page that contains a text box where in i am entering new city name and submit button.

I want that after click submit button the window should be closed and on the parent page the dropdownlist gets refreshed with the new value. I am able to do it but the whole page gets postbacked which I do not want. I have added the dropdownlist in the update panel but not able to do the partial postback.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved