By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,905 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,905 IT Pros & Developers. It's quick & easy.

Stupid posting web data question #2

P: n/a
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.

--
Ken
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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" <yo*@dontneed.this> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...
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.

--
Ken

Nov 20 '05 #2

P: n/a
ASP.NET forms post back to themselves, not to another page like classic ASP.

Greg
"KC" <yo*@dontneed.this> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...
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.

--
Ken

Nov 20 '05 #3

P: n/a
KC
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
news:OL**************@TK2MSFTNGP10.phx.gbl...
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" <yo*@dontneed.this> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...
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.

--
Ken


Nov 20 '05 #4

P: n/a
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" <yo*@dontneed.this> wrote in message
news:Or**************@TK2MSFTNGP12.phx.gbl...
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 news:OL**************@TK2MSFTNGP10.phx.gbl...
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" <yo*@dontneed.this> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...
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.

--
Ken



Nov 20 '05 #5

P: n/a

"KC" <yo*@dontneed.this> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...
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
Nov 20 '05 #6

P: n/a
KC
Once again, thanks!

Ken

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

"KC" <yo*@dontneed.this> wrote in message
news:u%****************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.