473,658 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB-NET, ASP.NET2.0: Making two textboxes with mirror text content

Steve Kiss
19 New Member
I have a site in which there are two asp textboxes as follows:

<asp:TextBox runat="server" ID="UserName" />
<asp:TextBox id="Email" runat="server" Visible="false" Text="<%UserNam e.text%>" />

What I want is for the second textbox to be invisible, but have it's text value be the same as the first text-box. Is it possible to do this? What I have above does not work.
Jul 5 '07 #1
1 1707
kenobewan
4,871 Recognized Expert Specialist
I would normally assign them the same value in the code but I believe that if you give the full reference it will work, .net 2 is more particular about referencing.
Jul 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
1712
by: Michi Henning | last post by:
Hi, I'm generating both VB and C# code from language-independent interface definitions, which is why I'm raising this issue. (The problem apppears to be somewhat esoteric, but it is real in my situation and is about more than just convenience.) C# has the notion of an out parameter (which is different from pass by value and pass by reference), but VB only understands pass by value and pass by reference. This means that parameters that
1
1153
by: vinuta | last post by:
I have three vb classes. First one has a variable whose value i want to use in a function in third vb class which is called by the second vb class. e:g; first.aspx.vb second.aspx.vb third.vb which has a function called drawlinegraph() now fisrt.aspx.vb has a varible z which is initialized to some value in the same class. Now i am calling the dralinegraph() from second.aspx.vb.
5
1265
by: thomas | last post by:
Hello, I wonder if it is possible to include visual basic class to a C++ project within a solution. Thanks Thomas
3
1805
by: Kaypee | last post by:
Howdy all am trying to convert c# app to VB so change alter parts of it. But am getting confused by a couple of bits... at least ;-) a) private point path1(point p1, point p2) { int minX = Math.Min(p1.X, p2.X); int maxX = Math.Max(p1.X, p2.X);
6
18117
by: Ryan | last post by:
I have 2 forms, Form1.vb and Form2.vb. In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the option to open Form2.vb in the main explorer window where usually I have the design view options for any forms. I don't get it. Why can I not get back to design view for Form2?? Thanks, Ryan
2
3037
by: Pon | last post by:
Hi everybody, I posted that on the Avalon ng but it seems there is not so much wpf developpers which use VB. Is there more VB developpers which work with WPF ? I'm trying to do a very simple thing. I'd just want to add a custom routed event with parameters to a user control with VB. I'd like also add common dotnet event style wrapper to it. There're plenty of samples of that in C#, but i can't get them work in vb.
196
5451
by: Don | last post by:
I realize that this may sound like a troll but it is not intended to be. I haven't been reading this group but I've seen a number of vociferious postings lately saying that "vb dotnet doesn't work". Is that a widely held belief or is it just the same complaning that goes on with all development tools?? Thanks,
8
9020
by: =?Utf-8?B?Umlja0Q=?= | last post by:
Suddenly I find myself unable to open Winforms files in designer mode. I get the message quoted below. I can open other types of vb files like modules, classes and code behind files, but simply creating a new project and double clicking on Form1.vb gets me this message: <<< There is no editor available for 'C:\....\Form1.vb'. Make sure the application for the file type (.vb) is installed.
25
2050
by: Andy B | last post by:
How hard/easy is it to use/learn VB compared to c#?
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8523
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4175
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
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 we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.