473,401 Members | 2,127 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,401 software developers and data experts.

Stupid posting web data question #2

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
6 1115
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
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
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
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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Clive | last post by:
Hello everyone, This is my first time posting, up until now i've only used google to seach :) I'm creating a multiplayer minesweeper game in Windows, so I have been reading up on CSockets. I...
119
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
5
by: raz | last post by:
Greetings all. I apologize for what is almost certainly a stupid question, but I can't figure this out, and have no more time for head bashing... The short version: what is the appropriate...
36
by: Hoopster | last post by:
Hello, I know nothing about C++ but want to get started. Is there any good free C++ program that I can try to see if I like programming? I also need a good free compiler. I don't want to...
5
by: Almir | last post by:
This db i created has been driving me nuts. I have this one table LOCATIONS, and in the data entry forms, the user is suppose to change the locations of the equipment or set a location when first...
3
by: Amil | last post by:
I must be missing something very simple. I've had a web site running for a long time (anonymous access). Web.config authentication is original (anyone gets in): <authentication mode="Windows"...
3
by: STom | last post by:
Ok, if I have a class: Public Class MyXClass Public Property X as Integer ..... End Class In my code if I have two instances of this class: Dim myX1 as new MyXClass
15
by: sparks | last post by:
We get more and more data done in excel and then they want it imported into access. The data is just stupid....values of 1 to 5 we get a lot of 0's ok that alright but 1-jan ? we get colums...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.