VS 2008 - How To Pass Value From Popup Back To Main Window And Postback

Jul 10, 2012

From my main window I am clicking on a button to show a popup window with a gridview control in it. I want to click on a row of the gridview and pass that date back to the main browser and have the gridview load data based on that value with the sqldatasource control. Is there any way to pass a value back and make it postback?

View 2 Replies


Similar Messages:

Web Forms :: Delegate - To Pass The Selected Value Back To The Main Page

Oct 1, 2010

Got a user control that has a Listbox on it and I want to be able to pass the selected value back to the main page.

User Control code:[Code]....

Main page that has the user control: [Code]....

This is the error I get back and I've tried everything I know, but cannot sort it. Probably something stupid but I just cannot see it.

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at bookings_roomadmin.Page_Load(Object sender, EventArgs e)
in \serverd$InetpubwwwrootNETDevelopNewAppNewAppookings

View 3 Replies

Pass Control Value From Parent Window To Popup Window's Code Behind

Apr 16, 2010

I want to receive value from parent's control to popup window's code behind. for example

<asp:RadioButton ID="rdoRate" GroupName="CouponType" value="0" runat="server" checked/>Rate
<asp:RadioButton ID="rdoAmount" GroupName="CouponType" value="1" runat="server"/>dollar

and recive selected radiobutton's value from popup window's code behind. My Solution is make querystring and pass the value.

for example >
window.open(url + ?selectedRadioVal=" + $("#~~checkedradiovalue~~) .. blah balh)
and receive the value by Reqeust.Querystring.Get().

But I can't send very long string. (maybe the url length is limited, right? Is there any good way to solve?

View 1 Replies

AJAX :: Javascript Window.history.back() With Modal Popup Extender

Sep 30, 2010

I have a asp.net page that has a list of items. When one of the items from the list is clicked a details page is displayed. This details page has a link button to show a popup for history of the item. The details page also has a button with text 'Back'. The back button has onclick event set to "javascript:window.history.back();".

This back button works fine and goes back to the first page. However when the user is on the second page and opens the pop up by clicking on the link button, the back button stop working and displays Webpage has expired message.

View 2 Replies

JQuery :: Popup Window In Same Browser After Postback?

Jul 25, 2010

I have developed a simple .aspx page which has a link button.Now, when a link button is pressed, the page is postbacked and response is returned with some records that i want to display on a popup window.But i dont want to open a new window. i want to open it in a popup on same browser page.I have seen this functionality in facebook.com. when you click on "See All" linkbutton to view all your friends list, a serverr request is sent to get the list of friends and is displayed in special type of popup in same browser window.i dont know weather they have used jQuery or AJAX.But i want to implement same functionality.

View 13 Replies

User Controls :: How To Pass Value From Popup Window To Parent Page

Nov 24, 2013

i want to pass the value of variable form popup page to main page. i have try to use the session but i can't because the main page is start before the popup page start.

View 1 Replies

Data Controls :: How To Pass Selected DropDownList Value To Textbox On Popup Window

May 7, 2015

How can i pass a selected dropdownlist value to textbox on popup window using javascript...

View 1 Replies

VS 2008 - Popup Window Can't Read A Text Box

Mar 5, 2012

I have a popup window (.aspx page). It will called from a parent .aspx page. All I want to do is read the name of the parent aspx page. I can do that also without issue. Based on the name of the parent window, in the page_load event of the popup window, I want to execute some code.

But the only catch is I am not able to read the parent window name until the page_load event complets the execution.

1. calling popup window from parent window.

Code:
function OpenWindow_HistoricalRuns() {
var windowIncsimHistRuns = window.open('MVal.aspx', 'Market', 'width=350,height=425,scrollbars=0');
windowIncsimHistRuns.moveTo(500, 300);
}

In the body of the popup window the following function tries to read the parent window name:

Code:
function SetDisplay() {
document.getElementById('<%=TextBoxSourcePageName.ClientID%>').value = window.parent.name;
}

In the page_load event of the popup window, I want to see what is value of TextBoxSourcePageName control. I hoped I will get 'MarketVal'. But I never get anything.

Code:
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
try
{
if (TextBoxSourcePageName.Text == "MarketVal")
}
}
}

View 6 Replies

Popup Needs To Refer Back To Textbox Within A Content Control / Window.opener.document.form1 Is Undefined

Sep 10, 2010

I have a link that is located inside a content control. This link calls a javascript function that opens a popup window containing a calendar and passes it the transformed id from the server of a textbox control using clientid. I need to be able to click on a date and have the popup close and insert the date into the textbox of the id I passed into the function which again, is located inside the content control.

This is the link in the content control:

[code]....

I should also mention the error I'm getting is:

window.opener.document.form1 is undefined

View 1 Replies

Forms Data Controls :: Pass Value From Child (popup Window) To Textbox Within Listview In Parent Page

May 25, 2010

I have a listview that has n rows.

Within the EditItemTemplate and InsertItemTemplate I have a cell that has a textbox and a button.

When the button is clicked a popup window is shown, where the user can upload a picture. The name of the uploaded picture is retrieved.

Now I want to send that picture name back to the textbox within the listviews EditItemTemplate or/and InsertItemTemplate (that is ofcourse one at a time depending on what the user is doing, inserting or editing a row).

The code I have written so far looks like this. The below code has been abbreviated

[Code]....

The code behind looks like this (also abbreviated). Actually I don't think the code behind is needed, since its mainly javascript from the popup window (child page), but nevertheless here it goes.

[Code]....

And at last the child page / popup page.

Well there is not anything to see here, cause I'm using the Telerik RAD upload control, which is doing everything for me.

However the line below may be of interest. Here I'm taking the name of the uploaded file (picture) and printing it to a label.

[URL]

View 2 Replies

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

Oct 18, 2010

i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?

View 2 Replies

Web Forms :: Go To Main Window After Button Click?

Mar 17, 2011

I have a small web app that connects to a small access db so i am using my own login screen (not a login control) to connect to my database.

All I need to do is after the user clicks my login button it should navigate to the default.aspx page which is the main page of my app.

View 5 Replies

Open New Window, Change Something And Update It In The Main Screen

Nov 5, 2010

if a screen with some data, called the main screen.On that screen i want to place a button, if i press the button a new window appears with another form. So no problem right now.The user change some data on the new window, and presses save.After the user presses save, the data in the database is update, but also he need to refresh the data on the main screen.
How can i do that ? so that if the user presses save, the window closes and the main screen gets updated?

View 10 Replies

Get Parameters Out Of An Ascx Back To Main Aspx Page?

Jun 15, 2010

I've got an aspx page that renders an ascx page with filtering capabilities. Inside the ascx page, parameters are passed as follows:

<tr>
<td class="label">Plataforma</td>
<td class="field lookup"><%= Html.Lookup("s.Site", null, Url, "Sites") %></td>
</tr>
<tr>
<td class="label">Data</td>
<td class="field date"><%= Html.TextBox("s.Date", DateTime.Today.ToString("yyyy-MM-dd")) %></td>
</tr>

I need to be able to get those parameters on the main aspx page, because they are needed for an action that is called there. How could I access these parameters?

View 1 Replies

Javascript - Passing Data Between A Parent Window And A Child Popup Window With JQuery

Dec 3, 2010

I have the following HTML

<tr>
<td class="label" valign="top">
Affiliate Party
</td>
<td class="field">
<input type="hidden" name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyId" id="AffiliatePartyId" />
<input name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyName" type="text" id="AffiliatePartyName" class="PartyLookup" />
</td>
</tr>

and the following Javascript/jQuery

$(".PartyLookup").after("<img src='Images/book_open.png' class='PartyLookupToggle' style='padding-left:4px;' />");
$(".PartyLookupToggle").click(function () {
window.open("PartySearch.aspx", "PartySearch", "width=400,height=50");
return false;
});

I need to be able to flag ANY PartyId input field with class="PartyLookup" so that it will modify the DOM and include the image next to the input field. The popup window returns data to populate both the hidden and text fields, but since the click() is generic I need to pass it the ID of the input field.

View 2 Replies

Web Forms :: Return True Or False From Popup Window To Parent Window

Sep 25, 2010

I am trying to return true or false from popup window to the parent window. Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message. But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?

View 5 Replies

Web Forms :: Call Parent Window Method From Model Popup Window?

Nov 17, 2010

i have a page Parent.aspx,, and this is responsible to open the window as a model dialog(model.apsx). model.apsx has OK button when we click on this button then server side method called to save the data. while saving the data it return the id of saved data. i need this id on my Parent.aspx.Cs file, so how can i get this id on my Parent.aspx.cs file?

View 5 Replies

Web Forms :: Close Popup Window And Open Page In Parent Window?

Mar 10, 2011

I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop

So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.

View 1 Replies

Web Forms :: Retrieve Value From Popup Window Opened Using Window.open?

Apr 28, 2010

I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.

View 3 Replies

Web Forms :: Passing Variables Between Parent Window And Popup Window

Apr 29, 2010

I have a page wich opens a popup window. I want to pass some variables, like some textbox.text and 2 dataTables from parent window to the popup window. And then I'll have to return some vars from popup window to parent window. So what is the best way to do this,

1) using Sessions("")

or

2)passing the variables as parameteres:

LinkButton1.Attributes.Add("onclick", "window.open('popup.aspx?field1=" & value1 & "&field2=" & value2 & ......

I don't know if it's appropiated passing 8 or 10 variables as the option2 because the user will see a very long url with all the variables, but maybe is more efficient than using Sessions.... Anyway, could somebody clear me up?

View 12 Replies

Web Forms :: Accessing Textbox In Parent Window From Popup Window

Feb 15, 2011

I am using a master page in my project. I opened a popup window from content page. What I want to do is, when I close the popup window, the data in the textbox available in popup should be assigned to a text box in parent form. But I dont want to refresh the parent window when I close the popup window. Can any one tell me how can I access textbox in a parent window from a popup window without refreshing the screens.

View 3 Replies

Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because

our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies

Web Forms :: How To Pass A Session Variable From Child Window To Parent Window

Feb 22, 2011

I have a page (parent) that open up a popup window using window.open javascript. User will then work on the popup window and the result will be stored in a session variable. When the user close the popup window, how can I put the value of the session variable back to the server control textbox of the parent window?

View 3 Replies

Open A Popup Window On Top Of A Popup Window

May 7, 2010

I have a scenario where I have a popup window open and that will have links to open up another window that's going to pop open on top of the already open popup window. I've tried all sort of tricks (javascript window.open, target="_blank" etc.) but nothing seem to work. It always was opening the page on the already opened popup window.

View 1 Replies

AJAX :: Modal Popup - Hitting Return Fires Button On Main Page?

Feb 20, 2011

I have a modal popup and the CSS prevents anything from being entered on the main page.

However, when I hit enter while the modal popup is displayed, a button on the main page is fired.

It seems to only happen if the button on the main part of the page is pushed down out of view so it is not currently on the screen.

How can I prevent a button on the main page from firing when the user hits enter?

View 3 Replies







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