Question

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

Was it helpful?

Solution

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 ;)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top