473,657 Members | 2,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change Labels to Textboxes easily?

I have a web form page (.aspx) with 95 label controls that I now need to be
text boxes. Is there an easy way to change those to what I want using
something like a find and replace or am I stuck "changing" each one by hand
by deleting the label and dragging a text box in its place?

Alternatively, the reason I think I need text boxes is that I need to pass
the info in the labels to another page and its not working unless I use a
text box. Is there a way to pass info from labels to another page?

Which problem is easier to solve?

Ken "BiggMakk" McCrory

Nov 19 '05 #1
3 1612
Hi Ken,

Your question is difficult to answer as you've asked it. So far, we know
that your requirements are:

1. You have a page with labels in it containing some sort of data from some
unknown source.
2. You need to "pass the info" in the labels to another page.

These requirements are not complete enough to give a good answer to. First,
where is all this data coming from? Second, what is it for (what do you need
it for)? Is it data that is input by the user? I ask this because apparently
it is not, and a form text box is an input device for the user to input
data. If the data doesn't change, using a form field is a bad idea.

So, backing away for a moment from your interface design, we need to know
what the app is supposed to be doing with this data. The interface design is
dependent upon the business requirements for your app.

For example, assuming that these labels are populated on the server, what is
the requirement that dictates that they should be "passed" to another page?
The other page is on the server as well, and could well grab the data from
the same location on the server as the first page. Can you provide more
information about your specific requirements?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Ken McCrory" <kl*****@remove fornospammers.s msu.edu> wrote in message
news:Om******** ******@TK2MSFTN GP10.phx.gbl...
I have a web form page (.aspx) with 95 label controls that I now need to be
text boxes. Is there an easy way to change those to what I want using
something like a find and replace or am I stuck "changing" each one by
hand
by deleting the label and dragging a text box in its place?

Alternatively, the reason I think I need text boxes is that I need to pass
the info in the labels to another page and its not working unless I use a
text box. Is there a way to pass info from labels to another page?

Which problem is easier to solve?

Ken "BiggMakk" McCrory

Nov 19 '05 #2
This page is a confirmation page of registration information. The labels are
populated from the registration form page using the Request.Params method.
The user process here is (1) fill out the registration form, (2) that info
gets passed to the confirmation page (this page in question) for
confirmation (3) if the user confirms this information then it will get
written to a database and the info gets sent to another page for credit card
processing. HOWEVER, something you said may be another possibility. I could
just write it to the database and on the next page retrieve it back from the
database. I'm going to have to do a query anyway to get the registration
number that the database automatically assigned when the record was written.
I'll still need to pass enough info to perform a SELECT to get the record
back from the database but that's a lot fewer fields than the entire form.

There's still some ways I could have done this better from the beginning but
now I'm in a time crunch to get this online for use so anything that works
is probably going to be the "quickest".

Thanks for the help, past and future.

Ken "BiggMakk" McCrory

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:e2******** ******@tk2msftn gp13.phx.gbl...
Hi Ken,

Your question is difficult to answer as you've asked it. So far, we know
that your requirements are:

1. You have a page with labels in it containing some sort of data from
some unknown source.
2. You need to "pass the info" in the labels to another page.

These requirements are not complete enough to give a good answer to.
First, where is all this data coming from? Second, what is it for (what do
you need it for)? Is it data that is input by the user? I ask this because
apparently it is not, and a form text box is an input device for the user
to input data. If the data doesn't change, using a form field is a bad
idea.

So, backing away for a moment from your interface design, we need to know
what the app is supposed to be doing with this data. The interface design
is dependent upon the business requirements for your app.

For example, assuming that these labels are populated on the server, what
is the requirement that dictates that they should be "passed" to another
page? The other page is on the server as well, and could well grab the
data from the same location on the server as the first page. Can you
provide more information about your specific requirements?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Ken McCrory" <kl*****@remove fornospammers.s msu.edu> wrote in message
news:Om******** ******@TK2MSFTN GP10.phx.gbl...
I have a web form page (.aspx) with 95 label controls that I now need to
be
text boxes. Is there an easy way to change those to what I want using
something like a find and replace or am I stuck "changing" each one by
hand
by deleting the label and dragging a text box in its place?

Alternatively, the reason I think I need text boxes is that I need to
pass
the info in the labels to another page and its not working unless I use a
text box. Is there a way to pass info from labels to another page?

Which problem is easier to solve?

Ken "BiggMakk" McCrory


Nov 19 '05 #3
If you need a "edit" and a "preview" page then you could simply just
have a special CSS attribute.
When you are in preview mode set the parent Container to disabled and
using CSS apply a borderless style to your input elements.
try using the following to help give you a better idea of what you
might want to look at.

<asp:Panel Id="bleha" CssClass="mypar ent">
..myparent input { border:0px; }

Nov 19 '05 #4

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

Similar topics

4
1790
by: Dalan | last post by:
I have been using a module for printing labels in Access 97, and although it works fine, I would like to add a small enhancement to it. The module allows for setting the number of labels to print and/or to skip; however, the Cancel command button does not function, nor does clicking the X-close. Clicking either one is the same as clicking the OK button. Since the module creates and displays the dialog box, I will need a piece of code to...
2
14179
by: ooooscar | last post by:
I'd like to make an application to print labels. I have to print an image and text, the label size is 10cm x 5 cm. I'm wandering how to do it in c#. My first thought is to make an acrobat "form" with the image and text, but I have to send a date in the label so I need to open the pdf and send the date into a field (variable), then I have to print n times the same label. Can anyone help me ? Thank's.
2
1084
by: Bob Hollness | last post by:
OK. I want to use a transparent control to display text on an image. I also want it to allow user input and editing. See as textboxes cannot be transparent (or can they.....?) is there anyway I can set a label control to allow user input? Thanks -- I'll have a B please Bob.
2
1326
by: Peter Stojkovic | last post by:
I have some windows, which have a lot of Textboxes, labels and buttons. How can i - in a simple way- make a print out of all these textboxes ( "input" of textboxes of course ), labels and .so.on. Thanks fpr any help Peter
1
3184
by: Rohan | last post by:
Hi There, Is it possible to rotate or resize pictureboxes, labels, textboxes at runtime? And I even wanted to make textbox and label controls Transperent ?
1
4150
by: Saso Zagoranski | last post by:
Hi, I've developed a Winforms application for a few people. It's a very basic Form with a few textboxes, comboboxes, buttons, labels and one PictureView. With 1024x768 screen resolution the all controls fit perfectly on the screen (all of them are visible).
0
1502
by: kwng | last post by:
Hi. I have create a program that create controls such as textboxes, labels and combo box during runtime. However, the textboxes created have default property for multiline which is none. This is not good for user as it disallow user to key in text with text wrapping ability. I read that one can use control array to handle or allow multiline in textbox during run time but I have not much clue. Any help is highly appreciated.
1
2112
by: jyothi1105 | last post by:
Hi, I want to add textboxes and labels at runtime. Controls are to be added according to the value entered in textbox. txtfamily is a textbox,in which user gives the no of familymembers. i want to add age,gender,notes for each member.I have to repeat this process for total no of family members. Iam trying this code below, please help me..iam not getting exactly what i wanted. Private Sub txtfamily_TextChanged(ByVal sender As...
3
7320
by: pvong | last post by:
VB.NET How do you change a gridview from Update mode to normal mode? I'm usually dealing for Formviews and there is a ChangeMode option but I don't see one for Gridviews.
0
8306
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
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...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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
7327
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...
1
6164
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4152
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
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
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.