Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How passing values from a form through another form

Reply
Thread Tools

How passing values from a form through another form

 
 
DanC
Guest
Posts: n/a
 
      01-23-2005
This is the situation.

In the firts form a selection is done. After submit a second form is called.
In that form there must be select from a list that is depending on the result
of the first form. So far so good.
The selection of the second form and the selection of the first form must
pas to a thirth page when the submit botton is hit.

I use in the second form:

<input type="hidden" name="hclass" value = <%Request.Form("klas") %>>

But that seems not to work. ( no error appears)

This test works correct
<input type="hidden" name="hklas" value = "test">

Any tip is welcome

DanC
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      01-23-2005
=?Utf-8?B?RGFuQw==?= wrote on 23 jan 2005 in
microsoft.public.inetserver.asp.general:

> <input type="hidden" name="hclass" value = <%Request.Form("klas") %>>
>
> But that seems not to work. ( no error appears)


should be:

<input type="hidden" name="hclass"
value = "<%Request.Form("klas")%>">

==================

Because, if the content of Request.Form("klas") is
"blah blah" you would get rendered:

value = blah blah>

suggesting to the browser:

value = "blah" blah>

and not

value = "blah blah">

Therefore it is essential for debugging
to view the rendered html source in the browser!

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
 
 
 
DanC
Guest
Posts: n/a
 
      01-24-2005
Great!

Tnx guys. It works now.

I found it also in a book. But it's hard to find good reference on this way
of programming.

Many thanks and greets

DanC


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
looping through json array loops through the characters instead ofthe values Aaron Javascript 2 04-10-2011 05:58 PM
passing values from one web form to another web form bbawa1@yahoo.com ASP .Net 5 06-12-2007 05:50 AM
Confused with passing values through classes ? andyw C++ 4 10-29-2006 09:21 PM
passing values from one form to another eight02645999@yahoo.com Python 2 11-12-2005 05:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57