Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

obtain session variable from remote page?

Status
Not open for further replies.

mikemardon

Programmer
May 23, 2005
71
GB
I am developing a toolbar for outlook which needs to interact with a .net web application (not ours so i can't modify the source).

The problem I am having is that I need to access a value (personid) which exists in a session variable.

is this possible? I am able to screen scrape using a web request but obviously this only show me the source of the page - I had thought about the possibility of referencing the page object so I can get to page.session?

thanks in advance!
 
i don't think this is possible. this is not what http is designed for. think about it. asp.net serves http request/response. This is just text. so you make a request to the application. the application processes the request and sends text back. the client, in this case your local box, has no knowledge of what's happening on the server.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Thanks for the reply - yes this does make sense..

Does anyone know if it is possible to add an aspx page to an existing application by copying it to the root folder? I guess if it is possible it will be a bit more involved than this because it was not compiled with the original project?

Thanks
 
asp.net is a compiled language. even if you have 1 page that still requires the full asp.net framework, web.config, and IIS configuration.

but http is just request/response. you could setup the asp.net site to be a service layer to get data. using ajax have your main system make a request to the .net web service.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
sorry I should have made my last post clearer

I need to add a single aspx page to an existing web application which is already deployed on several client sites - this application is not ours so I can't recompile/reinstall it with the page added, I am trying to make it work without the need to do this.

The new page was created within the web application locally on my machine so it has been compiled as part of the project and works OK but will it get served if I copy it to the same location on client sites?

Thanks!

 
I need to add a single aspx page to an existing web application which is already deployed on several client sites - this application is not ours so I can't recompile/reinstall it with the page added, I am trying to make it work without the need to do this.
I would ask the vendor who supports/created the application. there may be extension points in the system which you can tap into.

The new page was created within the web application locally on my machine so it has been compiled as part of the project and works OK but will it get served if I copy it to the same location on client sites?
you just said you can't recompile it. if you did this locally then you need to test in a testing environment as well. if that works, then you can push to production. but this isn't asp.net specific, this is just the product deployment cycle.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top