Post to page

P

pmclinn

I have a page that is has been converted from a get url to a put
statement. The variable that the page is looking to have 'put' is
named 'sendit'.

The sendit just contains a simple date.

So I want to post like this:

dim mydate as date = now

sendit = mydate
Post/Submit....

And I want to post this to via the web form. Without using a third
party app how would I send this info...

-Peter
 
G

Guest

Hi Peter,

If you submit to a page in same application, you can save the ‘sendit' in
Session. Then in process page, retrieve the ‘sendit’ from Session.

In sending page:
Session.Add(“senditâ€, sendit)
Response.Redirect(“retrieving_urlâ€)

In retrieving page:

Dim sendit As Date = CType(Session(“senditâ€), Date)

Or you can use queryString to transfer the data to retrieving page:

In sending page:
Response.Redirect(“retrieving_url†& “?sendit=†& sendit.ToString)

In retrieving page:

Dim sendit As Date = Date.Parse(Request.QueryString.Get(“senditâ€))

In addion, HttpCookie can also be used to transfer data in pages.


HTH

Elton Wang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top