Last post Jan 27, 2010 10:49 AM by Tanvir Shaikh
Apr 22, 2009 03:25 AM|ankit_sood007|LINK
I want to call an external link from one of my Page.
I can't Use Frames as i don't want to show this link to the user.
Server.Execute() doesn't work for External Url..
So, What can i use to do this .... ??
Apr 22, 2009 02:53 PM|agolden|LINK
Try one of these:
Hope that helps.
Apr 23, 2009 03:02 AM|ankit_sood007|LINK
let me make my requirement a bit more clear.
I have written some code on a Web Page. That page is available on my address
Now i have Another Application hosted on Another Server.
From one of my page i want to send Info entered by the user through QueryString to that page (i.e;
But i don't want to show this page to my user.
I can't use Frames (Even hidden one), as i don't want this address to go to the client side.. I want to execute this page on server side. Any idea ??
Apr 23, 2009 03:20 AM|malcolms|LINK
Apr 23, 2009 03:27 AM|ankit_sood007|LINK
i didn't get your idea. What thing should i use ?? And how ??
Apr 23, 2009 03:38 AM|malcolms|LINK
What I was thinking is that on one of your pages the user enters some data, say two fields, and then that data is sent to the separate page without the using knowing. Well you could do this using an UpdatePanel. So put your code text boxes or whatever
you want to user to fill out, then when they submit it, it can be sent to the other website without the user knowing:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:TextBox runat="server" ID="txtFirstname" />
<asp:TextBox runat="server" ID="txtSurname" />
<asp:Button runat="server" Text="Submit" />
Apr 23, 2009 03:49 AM|ankit_sood007|LINK
i need the technique to use:
like i can't use Response.Redirect(http://MyIP/MyPage.aspx?Value1="+txt1.text+"&Value2="+txt2.Text); bcoz i don't want to redirect.
I want something like Server.Execute() [Doesn't work 4 external Url], Just to execute that page once with the values sent..
Apr 23, 2009 04:01 AM|sumitd|LINK
Have you tried using the XMLHttp object to send a request to that page?
Response.Buffer = True
Dim objXMLHTTP, xml
Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
Dim str as String = "http://MyIP/MyPage.aspx?Value1="+txt1.text+"&Value2="+txt2.Text"
xml.Open "GET", str , False
' Actually Sends the request and returns the data:
Apr 23, 2009 04:06 AM|Coool|LINK
The solution of your problem is very simple using pure AJAX call. Just use the full URL in AJAX Call.
Apr 23, 2009 04:49 AM|seekerwoo|LINK
Take a look WebRequest class in asp.net ajax client lib.
Apr 23, 2009 05:32 AM|ankit_sood007|LINK
Finally, My Problem was resolved using the following code:
WebResponse resp = req.GetResponse();
Thanx 2 All of you for helping me out and providing me with new ideas !!! [Yes]
Apr 23, 2009 10:26 AM|sumitd|LINK
I will run the fiddler and i will get the url
Jan 27, 2010 10:49 AM|Tanvir Shaikh|LINK
Hey Thanks for the detail. It was very helpful to me as i had exact same problem.