Sunday, 15 April 2012

c# - passing value from opener to popup and processing it server side, not client side. Cant use a GET -


I have an aspx web page (opener) which opens a popup window

popups Need to retrieve the value of the hidden area in the I Opener page in the window.

So it all goes straight by using Javascript.

However, here's the problem, I need the value hidden field to process the server side before loading the pop-up page

(basically, hidden) The field contains XML, which must be DSRerized to the server side and the data used to create the DOM of the popup page)

Then how do I hide the opener for getting the processed server side in the popup Data field How can I pass?

The data is too long to pass as Waaay GET i.e. in the quickstream of the popup page

What are the other options here?

  1. Retrieve it using a javascript in a popup, then make a postback to reload the page (very ugly)
  2. Post data when a popup is opened Are you Is it possible and I can pass other information through query string
  3. Any other ideas?

is a form like this

  & lt ; Form method = "POST" action = "action.php" onsubmit = "open_popup (this);" & Gt; & Lt; Input name = "really big field" type = "hidden" & gt; & Lt; / Form & gt;  

Also, javascript like this

  function open_popup (form) {window.open ('action.php', 'actionpopup', 'width = 400 , Height = 300 '); Form.target = 'actionpopup';  
  1. window.open () Open a popup as you want.

  2. Setting the goal of the form for an open popup will ensure that the form at that popup

  3. < P> You can process server-side data in action.php
  4. / Strong> (or in ASP.NET / VB file).


No comments:

Post a Comment