473,320 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

sending information with a url redirect

I have a need to send a user to another url, either with a redirect or
with a frame.

I need to have two fields filled in and a button pressed on the new url.

How can this be done?

Thanks,
Nov 19 '05 #1
4 1007
--> Passing in the querystring.
--> or session variable.

"MotorcycleIke" <no***********@yahoo.com> wrote in message
news:E9********************@comcast.com...
I have a need to send a user to another url, either with a redirect or with
a frame.

I need to have two fields filled in and a button pressed on the new url.

How can this be done?

Thanks,

Nov 19 '05 #2
If the site you're redirecting to is under your control, it would be easiest
to pass the data via querystring and have the recieving page code adjusted
to accept parameters in this way.

If the site is not yours, you'll likely need to use the webrequest object.
Here's more info on that:
http://msdn.microsoft.com/library/de...classtopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ew**************@TK2MSFTNGP12.phx.gbl...
--> Passing in the querystring.
--> or session variable.

"MotorcycleIke" <no***********@yahoo.com> wrote in message
news:E9********************@comcast.com...
I have a need to send a user to another url, either with a redirect or
with a frame.

I need to have two fields filled in and a button pressed on the new url.

How can this be done?

Thanks,


Nov 19 '05 #3
Steve C. Orr [MVP, MCSD] wrote:
If the site you're redirecting to is under your control, it would be easiest
to pass the data via querystring and have the recieving page code adjusted
to accept parameters in this way.

If the site is not yours, you'll likely need to use the webrequest object.
Here's more info on that:
http://msdn.microsoft.com/library/de...classtopic.asp

The site is not ours, so we'll try working with the webrequest object.
I am going to have to look for an example that fits. My coding skills
aren't up to the explanation given at the microsoft site.
Thanks for the assistance.
Nov 19 '05 #4
maybe. depends on how the other site is coded. if its postback logic
supports gets, then you can redirect.

http://somesite.com/somepage.cgi?fie...me=buttonvalue

if its an aspx form, you need to send a valid viewstate, you would need to
use webclient to call the website to get the viewstate.

if the site requires session data to support its postback, again you are out
of luck.

-- bruce (sqlwork.com)


"MotorcycleIke" <no***********@yahoo.com> wrote in message
news:E9********************@comcast.com...
I have a need to send a user to another url, either with a redirect or with
a frame.

I need to have two fields filled in and a button pressed on the new url.

How can this be done?

Thanks,

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
9
by: Paul | last post by:
What I am trying to do is as follows. I have a page with 3 links,that direct the user to 3 different pages when selected after login. So all link selections will first direct the user to a login...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
4
by: splicemix | last post by:
Hi all, I have recently set up a Drupal website. I am a beginner. My shared host server does not allow nobody@localhost to send emails, and prevents access to php.ini, so I spent some time...
2
by: Nathan Sokalski | last post by:
The last two lines of code in the Click event of a Button Control on my page are: Me.WelcomeEmail() Response.Redirect("mainmenu.aspx") The last line of code in Me.WelcomeEmail() is:
0
by: pigeonrandle | last post by:
Hi, I'm trying to redirect click events from a panel in my application to another applications window such that i 'click' the menu of the other application. I (naively) thought i could just...
1
by: cmpcrand | last post by:
Hello my name is Craig. I am wondering if it is possible to have 2 websites that are based on the same web server and if somebody enters some information into a textbox on 1 page and then clicks...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.