Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: New way of passing hidden form fields? Help! :)


Message #1 by "Lists, IT" <ITLists@l...> on Tue, 9 Jul 2002 13:37:56 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C22788.81BFEE70
Content-Type: text/plain;
	charset="iso-8859-1"

Seems there is no <asp:hidden /> control.

Here is what I am doing:

I'm writing a page that allows a user to post a message to a message forum.
I want this write page to be both for new posts & replies. In ASP, I simply
passed a querystring field to the URL from a reply page (e.g.
write.asp?table=Replies). If this field were present, the SQL would be
constructed with the Reply table, otherwise it would use the normal Posts
table.

Any suggestions on tips on how to go about this in ASP.NET? Thanks!

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com 

Message #2 by "Garland Frye" <gfrye@s...> on Tue, 9 Jul 2002 16:04:44 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C22762.570F6460
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

New way of passing hidden form fields? Help! :)Try 
System.Web.UI.HtmlControls.HtmlInputHidden

Thanks,
Garland
  "Lists, IT" <ITLists@l...> wrote in message 
news:191881@a...
  Seems there is no <asp:hidden /> control.

  Here is what I am doing:

  I'm writing a page that allows a user to post a message to a message 
forum. I want this write page to be both for new posts & replies. In 
ASP, I simply passed a querystring field to the URL from a reply page 
(e.g. write.asp?table=3DReplies). If this field were present, the SQL 
would be constructed with the Reply table, otherwise it would use the 
normal Posts table.

  Any suggestions on tips on how to go about this in ASP.NET? Thanks!

  Wells Oliver
  Web Application Programmer
  Leviton Voice & Data
  xxx-xxx-xxxx
  http://www.levitonvoicedata.com



Message #3 by "Dave Rezoski" <daverezoski@h...> on Tue, 09 Jul 2002 21:03:02 +0000
maybe set a textbox visible to false, therefore it will be hidden?



----Original Message Follows----
From: "Lists, IT" <ITLists@l...>
Reply-To: "ASP+" <aspx@p...>
To: "ASP+" <aspx@p...>
Subject: [aspx] New way of passing hidden form fields? Help! :)
Date: Tue, 9 Jul 2002 13:37:56 -0700

Seems there is no <asp:hidden /> control.

Here is what I am doing:

I'm writing a page that allows a user to post a message to a message forum.
I want this write page to be both for new posts & replies. In ASP, I simply
passed a querystring field to the URL from a reply page (e.g.
write.asp?table=Replies). If this field were present, the SQL would be
constructed with the Reply table, otherwise it would use the normal Posts
table.

Any suggestions on tips on how to go about this in ASP.NET? Thanks!

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com






_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

Message #4 by "Chadrick" <chadm@d...> on Wed, 10 Jul 2002 08:09:44 -0400
Try <asp:textbox ID="idName" runat="server" Text="value" Visible="false"
/>

-----Original Message-----
From: Lists, IT [mailto:ITLists@l...] 
Sent: Tuesday, July 09, 2002 4:38 PM
To: ASP+
Subject: [aspx] New way of passing hidden form fields? Help! :)

Seems there is no <asp:hidden /> control. 
Here is what I am doing: 
I'm writing a page that allows a user to post a message to a message
forum. I want this write page to be both for new posts & replies. In
ASP, I simply passed a querystring field to the URL from a reply page
(e.g. write.asp?table=Replies). If this field were present, the SQL
would be constructed with the Reply table, otherwise it would use the
normal Posts table.
Any suggestions on tips on how to go about this in ASP.NET? Thanks! 
Wells Oliver 
Web Application Programmer 
Leviton Voice & Data 
xxx-xxx-xxxx 
http://www.levitonvoicedata.com 
--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  


Message #5 by Feduke Cntr Charles R <FedukeCR@m...> on Wed, 10 Jul 2002 08:49:27 -0400
	An invisible text box doesn't work because invisible controls aren't
rendered.  You'd have to style="visibility: none;" or whatever it is.  I
think what you really want is:

<input type="hidden" id="table" name="table" RunAt="server" />

	Note both id and name is used and the "RunAt='server'" attribute;
this makes the control a System.Web.UI.HtmlControls.HtmlInputHidden.  If you
didn't have a RunAt="server" and at least one control is in the viewstate,
then all controls that aren't explicitly marked as RunAt="server do not make
it into the end forms collection (this is sort of a security feature).

HTH,
- Chuck

-----Original Message-----
From: Chadrick [mailto:chadm@d...]
Sent: Wednesday, July 10, 2002 8:10 AM
To: ASP+
Subject: [aspx] RE: New way of passing hidden form fields? Help! :)


Try <asp:textbox ID="idName" runat="server" Text="value" Visible="false"
/>

-----Original Message-----
From: Lists, IT [mailto:ITLists@l...] 
Sent: Tuesday, July 09, 2002 4:38 PM
To: ASP+
Subject: [aspx] New way of passing hidden form fields? Help! :)

Seems there is no <asp:hidden /> control. 
Here is what I am doing: 
I'm writing a page that allows a user to post a message to a message
forum. I want this write page to be both for new posts & replies. In
ASP, I simply passed a querystring field to the URL from a reply page
(e.g. write.asp?table=Replies). If this field were present, the SQL
would be constructed with the Reply table, otherwise it would use the
normal Posts table.
Any suggestions on tips on how to go about this in ASP.NET? Thanks! 
Wells Oliver 
Web Application Programmer 
Leviton Voice & Data 
xxx-xxx-xxxx 
http://www.levitonvoicedata.com 
--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  




  Return to Index