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

Firing postback from pop-up form?

Hi

I want to provide a pop-up window a bit like the asp.net calendar, but when
the user selects a value, instead of poking a value straight into a textbox
on the parent page, I want to pass back a database id, and then invoke an
event or postback.

The scenario is that I need to provide the user with a pop-up search form,
and when they select a result, pass the record id back to the parent page
and do further server-side processing.

What's the best way to do this?

Many thanks

Ben
Nov 19 '05 #1
2 1425
Hi,
Assuming your Parent window has a button you can you like this.

//Set the selected the value in the hidden varable
//Do a post back
window.parent.__doPostBack('btnSearch','')

In server side . Get the value of hidden varaible using
Request.Form("hidden") and then process.

Regards,
Sambathraj

"Ben Fidge" <be*******@btopenworld.com> wrote in message
news:e9**************@TK2MSFTNGP12.phx.gbl...
Hi

I want to provide a pop-up window a bit like the asp.net calendar, but
when the user selects a value, instead of poking a value straight into a
textbox on the parent page, I want to pass back a database id, and then
invoke an event or postback.

The scenario is that I need to provide the user with a pop-up search form,
and when they select a result, pass the record id back to the parent page
and do further server-side processing.

What's the best way to do this?

Many thanks

Ben

Nov 19 '05 #2
Thanks a lot I'll have a try

"Sambathraj" <v_***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
Assuming your Parent window has a button you can you like this.

//Set the selected the value in the hidden varable
//Do a post back
window.parent.__doPostBack('btnSearch','')

In server side . Get the value of hidden varaible using
Request.Form("hidden") and then process.

Regards,
Sambathraj

"Ben Fidge" <be*******@btopenworld.com> wrote in message
news:e9**************@TK2MSFTNGP12.phx.gbl...
Hi

I want to provide a pop-up window a bit like the asp.net calendar, but
when the user selects a value, instead of poking a value straight into a
textbox on the parent page, I want to pass back a database id, and then
invoke an event or postback.

The scenario is that I need to provide the user with a pop-up search
form, and when they select a result, pass the record id back to the
parent page and do further server-side processing.

What's the best way to do this?

Many thanks

Ben


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: JezB | last post by:
Why is my Session_End event in global.asax never firing ? I've tried fiddling with the timeouts but still nothing. Ideally I want to do some processing whenever someone leaves my web application...
1
by: Raed Sawalha | last post by:
I am trying to sort a DataGrid in a user control that is programatically loaded when a link button is clicked. UC1 is loaded onto Page1.aspx after clicking a link button. No problem, loads fine....
3
by: JoakimR | last post by:
Hello, I have a problem with events not firing. I've created a web user control which renders a calendar using a table control. In two cells I'm adding LinkButtons for "prev/next month". However,...
8
by: walesboy | last post by:
greetings - I have a btnSubmit button with a Handles btnSubmit.click which works great if all the user does is click that button. But, if the user ALSO changes a text box on the page (which...
2
by: dilip.movva | last post by:
Hi, In the ItemDataBound of my datagrid I am creating a checkbox dynamically. I have the eventhandler defined for CheckedChanged of the check box. The event is not firing. The grid is bound in the...
28
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when...
1
by: Ben Fidge | last post by:
I've got a User Control that renders site navigation from a database. For some reason, when using Output Caching, none of my LinkButtons fire their PostBack events. The declaration in the...
6
by: Kevin Attard | last post by:
I am using a GridView inside a UserControl which has a template column for deleting the rows. Before databinding the gridview i am attaching the RowCommand and RowDataBound event. I am using the...
1
by: =?iso-8859-1?B?R2VhcvNpZA==?= | last post by:
Hi, Wierd problem. Using ASP.NET 2.0. Have a DropDownList - <asp:DropDownList ID="DropDownListMake" runat="server" CssClass="selectComparison" AutoPostBack="True"...
3
by: Jay | last post by:
I am on the 2.0 framework and have run the c:\windows\microsoft.net \framework\v1.1.4322\aspnet_regiis.exe -c and had no success. About half of the buttons on my webforms are firing and the other...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.