|
Hi,
I have two sites (domain1 asp.net web application and domain2 perl web booking application).
Currently, a user clicks a button on domain1 to start their journey, they are then sent to domain2. On domain2 the user clicks a button to complete their journey.
This is what I want to do, when the user clicks the button on domain1 to start their journey, a cookie is saved and when the user clicks the button on domain2 to complete their journey the cookie is updated. This will allow me to record how many people who started the journey, completed it.
I know cross domain cookies are an issue however i've heard of people using the image tag to get round this problem by placing a hidden image on the pages where the buttons are and setting it's src in script to a page elsewhere. I've seen solutions in php for this but i don't know php and need a .net or classic asp solution.
I also need to send the cookie info to a database but thats the easy bit.
Any ideas??
-- modified at 4:15 Tuesday 3rd July, 2007
|
|
|
|
|
The image URL should work like any normal ASP.NET page, just set the cookie, probably based upon the GET variables. (Look up Response.Cookies and Request.QueryString.)
Using an tag seems a little bit like a hack and therefore I wouldn't guarantee it would be totally future proof though. Instead I would just use a hidden IFrame, which expects a normal HTML source instead of an image. In domain2 you just set your cookie like normal .
If clicking the button is what sends the user to domain2, why not skip any cross domain cookie access and just POST the data ala a form to domain2 when they click the button instead of it being a vanilla link. That would seem to me to be the cleanest approach. Domain2 can then set its cookie appropriately based on the POST (see Request.Form).
<br />
<form action="http://www.domain2.com" method="post"><br />
<input type="hidden" id="setThisCookie" value="default value" /><br />
<input type="submit" value="Go to Domain2" /><br />
</form><br />
|
|
|
|
|
forgive me if this has already been discussed (i'm new, obviously).
i want to be able to first login to my website using a standalone visual application (obviously through HTTP - also Asynchronously), then be able to add or explore data (think of the server side as a php blog application using mysql - i.e. wordpress). so for example the query for adding data is like:
http://site.com/add.php?article_id=22&title=hello
(and this would only work if i'm logged in)
assuming i have already written the api for the interface with the database (using php and mysql), what is the easiest way to make that standalone file? (and i mean literary standalone (one exe file only) that would work on as many different platforms as possible.
could anybody by any chance provide some sourrce code too?
an example of what i'm looking for in general would be Rapidget:
http://rapidshare.de/en/rapidget.html
hope that wasn't too long of a description
thank you
|
|
|
|
|
Hi Guys,
How can display the value of lastname under the GridView1_SelectedIndexChanging event?
Thanks in advance
hifiger2004
|
|
|
|
|
how to display image from different location
|
|
|
|
|
|
Hi.
I am making a website in plain old html. and I need to know how I can position a <DIV> inside a table which is 800 wide and centered, the cell they are in is the main area of the page, and I have two <DIV> inside this cell, I have the positioning set so I can drag them around, but I want them to retain their position inside the cell as the page expands or shrinks, at the moment if the page expands or shrinks they are no longer centered, the width of the cell that these <DIV> tags are in is 800pixels wide, and the area of the div's are probably 350 wide each and are to be placed beside each other. All I need is for these <DIV> areas to be evenly spaced inside the table cell (horisontaly that is) as the page size changes...
I know that this problem would go away if I didnt center the table, but unfortunatly that is not possible while acheiving what I want...
Thanks in advance...
|
|
|
|
|
Hi all,
I used code below but it not work, I can't open it
Response.AddHeader "Content-Disposition", "attachment; filename=E-survey Report.pdf"
Response.ContentType ="application/pdf"
Response.Flush()
Socheat
|
|
|
|
|
When I have done this you have to write the file to the stream. You also have to set the content-length.
Response.AppendHeader("Content-Length", strm.Length.ToString());
Byte[] buf = new byte[strm.Length];
r.Read(buf, 0, (int)strm.Length);
Response.BinaryWrite(buf);
Then
Response.Flush();
Hope that helps.
Ben
|
|
|
|
|
I don't understand, can you give me a full example because i currently using ASP + VBScript
Socheat
|
|
|
|
|
Sorry I don't have an example in asp + vbscript. The example I gave you was asp.net C#. The point is you have to read your pdf file in binary format and write it out to the response stream.
Ben
|
|
|
|
|
Hi
I am trying to drag a custom control from the toolbox to design form in my VS2005 IDE.
I ma getting this message
'Attempted to read or write protected memory.This is often an indication the other memory is corrupt'
but this is not happening in lower version so of VS
Please suggest.
|
|
|
|
|
Form my little experience in VS2005 IDE, it is more bugy than VS2003 IDE
|
|
|
|
|
Hi,
is it possible tjo install an client certificate in the internet explorer that it is available fo all users? Or do I have to install it for each user again?
Thanks for your help
Roland
|
|
|
|
|
I just need any code to basically have the person visting my site click on a popup link and the continue button to the next page will load up. I know this is possible and I have seen it on a rom site but never could find the source. Please help me. Thankyou soo much!
|
|
|
|
|
What do you mean by "popup link"? I think that you have to try to explain a bit clearer exactly what you want.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: What do you mean by "popup link"? I think that you have to try to explain a bit clearer exactly what you want.
Like if they click an ad, after the ad pops up and is open, the webage they were orignally at where they clicked the ad link, a new button would appear allowing them to go to another webpage.
|
|
|
|
|
Put the button in the page and hide it using css. When you open the popup, show the button.
---
single minded; short sighted; long gone;
|
|
|
|
|
Ok thankyou. Do you have that CSS script.
|
|
|
|
|
Hi,
I had a usercontrol in masterpage of root project.I had a page in subproject which inherits this masterpage. how can i redirect to rootproject pages and subproject pages.For the rootproject pages i had given href in usercontrol which is present in rootproject.Then how can i call the pages that are present in subproject and from there how can i redirect to rootproject pages.Can anyone help me in this.
|
|
|
|
|
What I do is:
Put the path in web.config file. To get the path for root you say "~" for example:
if your project is Test.UI where the control is inside folder "Controls"
Then in Web.Config goes the following:
<appsettings>
<add key="some" value="~Control\control.asax">
Now call this key to give the path of this control in your application.
I am sorry if this does not make any sense
If you are talking about two complete different project, this will not work.
|
|
|
|
|
how to get focus in a textbox on pageload which works in all browser specially in mozilla & IE ?????
hiiiiii
|
|
|
|
|
it can be textBox1.Focus(); I don't know if that works with Mozilla, try it !!!!!
|
|
|
|
|
If I have a big article with different fonts and mixed with some picture to represent in browser (with asp - client and c# - server) how can I do it?
If I have the document in any db and that dacument can be very larg to represent in a simple page. I wan to represent in simple page with 2 part like a book with 2 pages. But if document is biger then 2 pages I wan to put any button to go to another pice of document in that 2 pages.
I'm looking some think like word, but in server - client technice.
thnx Atdheu.
|
|
|
|
|
Please I have site with domain www.xxxx.com this site have web service. This web service call though javascripts and display the result my question is:
How I protect my web service call from other site like www.YYYY.com?
|
|
|
|