asp.net - Passing data between two applications via third application -


i have asp.net application containing 2 pages add/edit customer , customer list(view). there 1 more host asp.net application uses ajax tab container/accordian host above 2 pages in iframes. shown below tab1 contains edit customer page in iframe 1 , tab2 contains view customers page(only 1 can active @ time). if have move tab2 tab1 (e.g. user clicks on edit link in customer list), have refresh host application passing name of tab in querystring(this part handled host app , available way switch tab).

what best way pass data tab2 tab1 other query string? don't want change host app url appending querystring hard reset querystring without reloading. application in webfarm , has ip session affinity based load balancer. use in proc session fails obvious. there proven ways handle scenario in webfarm if remove out-proc sessions out of question?

 ----------------------------------------------------------------  asp.net main app content     virdir-b  [parent] **________________________________________________________________**  tab1                         | tab2  [iframe1]                    | [iframe2]      {  edit cust                 | {  view cust         virdir-a }            |          virdir  }                              | 

update :

well, solved problem using javascript directly setting source of iframe1 querystring parameter vds in same domain.

pseudo code:

on view page:

var tabcontainer=$(parent.document).find('#tabcontainerid').control; var iframe=$(parent.document).find('#tabcontainerid').children('#iframe1'); iframe.src="editcust.aspx?id=123" tabcontainer.set_activetabindex(0); 

but i'm curious know how have been handled if had no control on parent application(may in different domain).

at least 2 methods can think of used:

  • passing data cookie, reading on other tab
  • sending data asp.net host app using ajax , downloading on other tab

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -