473,466 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Invisibe control problem

dee
Hi

I'm trying to send a value calcutated in a WebForm to a target WebForm.
Staying away form QueryString() I make a hidden asp:TextBox and put
the value in there a ala old asp.
The target WebForm only can retrieve this value when the TextBox control
is Visible.
But this method worked in asp.
Appreciate any ideas. Thanks.
Dee
Nov 19 '05 #1
4 895
dee wrote:
Hi

I'm trying to send a value calcutated in a WebForm to a target WebForm.
Staying away form QueryString() I make a hidden asp:TextBox and put
the value in there a ala old asp.
The target WebForm only can retrieve this value when the TextBox control
is Visible.
But this method worked in asp.
Appreciate any ideas. Thanks.
Dee

Setting Visible in essence removes it from being spit out in the HTML
sent to the user.

http://msdn.microsoft.com/library/de...sibleTopic.asp

Use a hidden field instead:

<INPUT type=hidden id=Hidden1 name=Hidden1 runat="server">

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2
use style="display:none" instead of visible="false"

"dee" wrote:
Hi

I'm trying to send a value calcutated in a WebForm to a target WebForm.
Staying away form QueryString() I make a hidden asp:TextBox and put
the value in there a ala old asp.
The target WebForm only can retrieve this value when the TextBox control
is Visible.
But this method worked in asp.
Appreciate any ideas. Thanks.
Dee

Nov 19 '05 #3
dee
How can i maniputae a regular <INPUT> form within .NET code?
Thanks.

"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:OM**************@TK2MSFTNGP14.phx.gbl...
dee wrote:
Hi

I'm trying to send a value calcutated in a WebForm to a target WebForm.
Staying away form QueryString() I make a hidden asp:TextBox and put
the value in there a ala old asp.
The target WebForm only can retrieve this value when the TextBox control
is Visible.
But this method worked in asp.
Appreciate any ideas. Thanks.
Dee

Setting Visible in essence removes it from being spit out in the HTML sent
to the user.

http://msdn.microsoft.com/library/de...sibleTopic.asp

Use a hidden field instead:

<INPUT type=hidden id=Hidden1 name=Hidden1 runat="server">

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 19 '05 #4
dee wrote:
How can i maniputae a regular <INPUT> form within .NET code?
Thanks.

"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:OM**************@TK2MSFTNGP14.phx.gbl...
dee wrote:
Hi

I'm trying to send a value calcutated in a WebForm to a target WebForm.
Staying away form QueryString() I make a hidden asp:TextBox and put
the value in there a ala old asp.
The target WebForm only can retrieve this value when the TextBox control
is Visible.
But this method worked in asp.
Appreciate any ideas. Thanks.
Dee


Setting Visible in essence removes it from being spit out in the HTML sent
to the user.

http://msdn.microsoft.com/library/de...sibleTopic.asp

Use a hidden field instead:

<INPUT type=hidden id=Hidden1 name=Hidden1 runat="server">

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


By adding an id and runat="server" attribute to just about any HTML tag,
you created an HTML server control. Not as powerful as the normal
controls, but get the job done. Check out the
System.Web.UI.HtmlControls.HtmlInputHidden class for more info.

Note ural's solution works as well by using CSS to hide it...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Randy Birch | last post by:
Reposted as the original is reported as deleted from the server. re: MSComCtl Listview control cashes after installing VB6/VS6 SP6 I have been advised that this problem has been reproduced...
11
by: Sagaert Johan | last post by:
I have made a custom control that draws a rectangle when the mouse is down, and does nothing when the mouse is up. I set/reset a flag in MouseDown/Mouse up and use this to do the drawing in the...
2
by: anand | last post by:
Hi all, I have created a custom control which displays Image using Graphics.. I am using this control in a different windows application. I am dynamically creating the control and putting that...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.