Stupid posting web data question #2

  • Thread starter Thread starter KC
  • Start date Start date
K

KC

How would I post data from a listbox that allows multiple selections? How do
you join the name/value pairs for the posted data?

And for extra credit: Where is a page posting to when there is no "action"
in the form tag? It just says '<form method=post>'. I didn't think you could
do that, but there you go. Once I figure out how to post my data I have to
post it TO something but this web page has stuff I've never seen.
 
Exactly what are you trying to do here. It sounds like your writing this in
notepad or something and expecting to post it somewhere ?

WebForms follow a Request/Response model. You request the server responds,
when you Post, it has to be a PostBack to the server. The condition (
State ) of the controls are held in something called viewstate. This is a
hidden field on the webform. This allows use to get around the statless
nature of the web by synthesizing it with 'Viewstate'.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
ASP.NET forms post back to themselves, not to another page like classic ASP.

Greg
 
I'm posting data from my VB.net widows application to a webpage and reading
the resulting html returned. I know how to post a simple name/value to a
page and read the result. I'm stuck because I don't know how to post
information that would come from a listbox that allows for multiple
selections. My application has to mimic this format.

I'm also not sure where the data is being posting to since the form tag has
no "action".

Ken

One Handed Man ( OHM - Terry Burns ) said:
Exactly what are you trying to do here. It sounds like your writing this in
notepad or something and expecting to post it somewhere ?

WebForms follow a Request/Response model. You request the server responds,
when you Post, it has to be a PostBack to the server. The condition (
State ) of the controls are held in something called viewstate. This is a
hidden field on the webform. This allows use to get around the statless
nature of the web by synthesizing it with 'Viewstate'.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

KC said:
How would I post data from a listbox that allows multiple selections?
How
 
As far as the ListBox is concerned, each <SELECT> tage will have a number of
options, their selected property would have to be set to true before you
post.

This is not something Ive done from a windows forms APP, so I'm not entirely
sure

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

KC said:
I'm posting data from my VB.net widows application to a webpage and reading
the resulting html returned. I know how to post a simple name/value to a
page and read the result. I'm stuck because I don't know how to post
information that would come from a listbox that allows for multiple
selections. My application has to mimic this format.

I'm also not sure where the data is being posting to since the form tag has
no "action".

Ken

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
Exactly what are you trying to do here. It sounds like your writing this in
notepad or something and expecting to post it somewhere ?

WebForms follow a Request/Response model. You request the server responds,
when you Post, it has to be a PostBack to the server. The condition (
State ) of the controls are held in something called viewstate. This is a
hidden field on the webform. This allows use to get around the statless
nature of the web by synthesizing it with 'Viewstate'.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

How
have
 
How would I post data from a listbox that allows multiple selections? How do
you join the name/value pairs for the posted data?

You repeat the control name:

Listbox1=Sel1&ListBox1=Sel2&ListBox1=Sel5
 
Back
Top