DarkW1nter
DarkW1nter

Reputation: 2861

pass data from parent page to popup

I have an asp.net page which launches a child page in another browser window to look like a popup. I want to pass 2 pieces of data to it from the parent page. I know ots possible with javascript, but is there a way to do it using C#?

thanks again

Upvotes: 0

Views: 1036

Answers (1)

Tomas Vana
Tomas Vana

Reputation: 18805

Provided that the data is not too big (in sense of actual values) you can simply add it as a parameter to the URL (like Popup.aspx?Data1=Piece_of_data&Data2=Piece_of_data).

Otherwise you'd probably want to do the same thing with POST request, it depends on how exactly you are opening the popup ;)

Upvotes: 1

Related Questions