469,927 Members | 1,242 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Pass Datagrid Data To Parent Form

I have a link on my web app that opens a pop-up window. In the pop-up
window, the user can search for policy information. The result is displayed
on a datagrid. The datagrid has 1 hyperlink column and 3 bound columns. When
the user clicks the hyperlink, it passes the data of the hyperlink to the
parent window. This part works great. However, I would like to pass the data
on all 4 columns to the parent window.
Do you know how I can do this?

Thanks for any ideas,

Cesar
Jul 21 '05 #1
1 1506
if you're passing with javascript then make a function to populate 4 hidden
fields in the parent window and the submit that form.
if your link is of the form "page.aspx?param=<somevalue>" then just append
more name=value pairs onto your link like such:
"page.aspx?param1=<somevalue>&param2=<someotherval ue>.....". You can
implement a column like that with a Template Column. For mroe help on
Template Columns search around the web. You would be looking for something
along the lines of 'Concatenating columns in a datagrid'. There is a really
good book by Dino Esposito that covers this from Microsoft publishing called
'Building Web Solutions with ASP.NET and ADO.NET'.

Alexey.

"cksj" <ck*******@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP10.phx.gbl...
I have a link on my web app that opens a pop-up window. In the pop-up
window, the user can search for policy information. The result is displayed on a datagrid. The datagrid has 1 hyperlink column and 3 bound columns. When the user clicks the hyperlink, it passes the data of the hyperlink to the
parent window. This part works great. However, I would like to pass the data on all 4 columns to the parent window.
Do you know how I can do this?

Thanks for any ideas,

Cesar

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mauro | last post: by
2 posts views Thread by Scott | last post: by
1 post views Thread by cksj | last post: by
4 posts views Thread by tshad | last post: by
1 post views Thread by Sean Foley | last post: by
14 posts views Thread by =?Utf-8?B?Umljaw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.