473,385 Members | 1,829 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,385 software developers and data experts.

User control event - send value to parent

Hi, i have a user control that is a pop-up search tool. The user
enters the criteria and are presented wiht a datagrid. They can select
the right one. I raise this event. The parent page catches the event
(sender, e). But what is the right way to send to the parent a value
from the datagrid? Can I put that value in the event I raise? Its
just an integer.

When the parent catches the error, I want to have that integer in hand.
Thanks!

Nov 19 '05 #1
4 1704
Hi,

To pass the selected value to the parent window.
You will have to use clientside script, use "window.opener" in the
script to access the parent window

Anil Paranganat

"Antonio" <bl*****@yahoo.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi, i have a user control that is a pop-up search tool. The user
enters the criteria and are presented wiht a datagrid. They can select
the right one. I raise this event. The parent page catches the event
(sender, e). But what is the right way to send to the parent a value
from the datagrid? Can I put that value in the event I raise? Its
just an integer.

When the parent catches the error, I want to have that integer in hand.
Thanks!

Nov 19 '05 #2
really? isn't there an object oriented approach.... there's got to be.

Nov 19 '05 #3
Anything that is happening in the browser on the client, is still just
javascript. If you want 2 browser windows to communicate, you still have to
write javascript to do so.

"Antonio" <bl*****@yahoo.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
really? isn't there an object oriented approach.... there's got to be.

Nov 19 '05 #4
maybe I made it sound like 2 windows by saying popup. no, it is a user
control (.ascx) imbedded in the parent page. does that make a
difference for you?

Nov 19 '05 #5

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

Similar topics

0
by: Tim T | last post by:
Hi, I have a web application that has a number of users who administer their own data... i have several pages that check to see if a valid userID session exists, and if not, send them to a...
4
by: Josh Harris | last post by:
Here is my question: It is common to have many pieces of business logic encapsulated within asp.net user controls. This can be found in high visibility projects such as the iBuySpy portal from...
5
by: George Durzi | last post by:
I have a simple user control with a text box and a submit button. When the user enters some text into the textbox and clicks the submit button, a record is created in the database. I'm using...
0
by: ab_j | last post by:
I have a user control that contains a dropdown which I want to use as a menu on multiple .aspx pages. Basically, all I am trying to do is pass the selected value of the dropdown in the user...
10
by: sqlboy2000 | last post by:
Hello all, I have something very simple going on here and I'm scratching my head as to what the problem is. There are 4 items in my project, 2 webforms, a user control, and a module: ...
6
by: Art | last post by:
Hi I'm new at this and need some help. I have a "solution" with 2 projects - the main project and a library. The library is simple, it contains a text box that will appear many times in the form...
13
by: Michael | last post by:
I have setup a public variable in the Master Page "code-behind-file". Now I would like to set that value from the UserControl, but I can't seem to find a way to do this. Does anyone have any ideas?...
5
by: rn5a | last post by:
Consider the following user control which resides in Address.ascx: <script runat="server"> Public Property Address() As String Get Address = txtAddress.Text End Get Set(ByVal value As String)...
0
by: Ethan Strauss | last post by:
Hi, I have a page which dynamically creates a bunch of instances of a single user control and loads them into the cells of a table. Users will then be able to alter the settings in each user...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.