473,386 Members | 1,793 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

any bright ideas for button.enabled

hey all,

i have a web form that has 5 link buttons on it that are for record updates
(Edit, Cancel, Delete, New, Save). These buttons will serve 2 different
controls which are the formView and gridView (I know these come standard on
these controls, but please humor me).

I am trying to figure out the .Enabled property for each of these buttons
after one of these buttons are clicked.

I have many scenarios such as
what if the formView loads without a record (what will be the status of
..enabled for all buttons)
what if the fromView loads with a record and it has a 1 to 1 to Parent,
what if After a Save the record has a 1 to 1 relation to parent,
what if after a save the record is not a 1 to 1 relation to parent
after a delete, what should the .enabled be for all buttons
after new button is pressed
after cancel of new
many more...

and with all these scenarios i'm constantly enabling and disabling in the ui
layer and it's getting messy. any ideas on how to lesson the complexity?

thanks,
rodchar
Oct 18 '06 #1
0 975

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

Similar topics

5
by: bart plessers | last post by:
Hello, Somewhere in my code I have <input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')" DISABLED> I changed the layout of the INPUT with a stylesheet to INPUT { color:...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
0
by: Rick Shide | last post by:
I have a server-side button on a form that is not being disabled with the enabled property. C# code-behind // this is the buttons onclick handler private void CreateMetadataButton_Click(object...
7
by: code100579 | last post by:
Hi there, sorry if this is a really simple question. I need to write code for: If a button is pushed and then one variety of other buttons is pushed then certain options on the program will...
4
by: RON | last post by:
Can anyone tell me how I would fix this code to do the following? I want the buttons to be 0 through 9 not 1 through 10 like they are now. == Inherits System.Windows.Forms.Form Public...
5
by: tommaso.gastaldi | last post by:
Sometimes I just want to avoid the User might click again on a button (or other control) before the tasks attached to the click event are over (to avoid that he may unwillingly re-run them). So...
7
by: John Smith | last post by:
Hello, I have a simple question, I have a vb.net form with several buttons. If I store the name of a button in a variable.. Dim TheName as string TheName = ...
0
by: Curious | last post by:
I have a child form that inherits a parent form. There are buttons on the parent form: protected Button continueButton; protected Button pauseButton; protected Button retryButton; Since the...
14
by: squrel | last post by:
Hello everyone, I m using some button using toolbar such as Add,Save,View,.... my save button is not working.... it doesnt give me any error but does not save to my database.... or showing in my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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
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...

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.