Solved

view/edit form

Posted on 2011-02-28
8
357 Views
Last Modified: 2012-05-11
I have a form that the user is able to view a product ... I want to add the capability to allow the user to click on a button and edit that product.  To do that the labels would have to be replaced with other controls (ex drop text boxes).  Would I be better of creating a whole new page for the edit or is there a way i could use the same page?
0
Comment
Question by:vbnetcoder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 11

Accepted Solution

by:
srikanthreddyn143 earned 500 total points
ID: 34999472
You can use the same page. Instead of labels to show the data use textboxes and drop downs for updating . If you want to only show, disable them.
0
 

Author Comment

by:vbnetcoder
ID: 34999504
I suppose I could do that but the problem is disabled items don't show up clearly
0
 
LVL 12

Expert Comment

by:omegaomega
ID: 35001757
Hello, vbnetcoder,

Go with the solution that srikanthreddyn143 has suggested, but instead of disabling the controls, set the ReadOnly property of the TextBoxes to True, and replace any drop downs with a read-only TextBox.  (That is, put the drop-down and TextBox in the same location on the form, and hide or show whichever is appropriate for the current view/edit mode.

Cheers,
Randy
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 12

Expert Comment

by:omegaomega
ID: 35001780
Hello, vbnetcoder,

Using this technique has the added advantage (over labels or disabled textboxes) that it allows the user to copy the contents of the TextBoxes to the clipboard.  

Cheers,
Randy
0
 

Author Comment

by:vbnetcoder
ID: 35001787
Is it possible to overlap controls?
0
 
LVL 12

Expert Comment

by:omegaomega
ID: 35002643
Hi, vbnetcoder,

Sorry, I was thinking Windows Forms, where overlapping controls is easy.  I'm not sure, but I think that if you place the controls adjacent to each other in the web page design, and only one is visible, then the other will shift into the position made available by the hidden control.  

I don't work with web forms so perhaps there are other issues with the technique of which I'm unaware.   Others may be able to provide more enlightenment, but a little testing will probably give you the answer in short order.

Cheers,
Randy

0
 

Author Comment

by:vbnetcoder
ID: 35002906
OK I will give it a try
0
 

Author Closing Comment

by:vbnetcoder
ID: 35036615
i ended up doing this.  worked just fine
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question