473,748 Members | 3,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In Which event I have to enable and diasble the buttons

shek124
50 New Member
Hai to everybody,

I have maintained the user rights in my application. when the user logins the application, user right has maintained as session variable.
according to session variable , i have to enable / disable the buttons in
my page.. i have done at Page_Load Event. but its not worked successfully.. So in which event i call a function..

Could u anybody help me plz?
thanks in advance..
Jul 21 '08 #1
1 958
kenobewan
4,871 Recognized Expert Specialist
Page_Load Event is usually good for handling this situation. Do you have a problem with postback?
Jul 21 '08 #2

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

Similar topics

2
3728
by: alanrn | last post by:
For all you seasoned VB programmers this is going to be a no brainer. However, as a C programmer learning VB I'm having trouble getting my arms around the event-driven nature of VB. Suppose I have a form with a single command button (cmdPush). The form's code (including the cmdPush_Click() sub is between the dashed lines. --------------------------------------------------------------------
1
1187
by: Frank Uray | last post by:
Hi al I am trying the following On a base form I open a new form with a treeview On the base form, there are two buttons Depending on the selection in the treeview on the new form, I like to enable or disable buttons on the base form I do not like to declare and open forms as static. Would be nice if I can handl this somehow with a delegates where I can pass parameters..
5
1698
by: Vern | last post by:
I would like to disable a button on the form if the user is not authorized to use it. I've created a custom button and would like for each button to know if it should be enabled or disabled based on another class that would contain the users authority levels. I know I can use the on form load event, but I rather test to see if the user has access to the button during the buttons OnPaint event? If they don't have access, I'd like to...
2
1322
by: Kjell Kristiansson | last post by:
I have not been able to figure out how to catch the click event from a button that is added dynamically to a table. In priciple the process is as follows: When I first create the page I analyse data and if appropriate: - add one or more row to a table in the webform - add cells to the rows - add a button (myButton) where the user can change some settings. - enable/disable some other buttons to the form This is all done in a function...
1
1284
by: hartley_aaron | last post by:
Hi, I was wondering if it were possible to add some code that would proceed and/or follow the execution of each each event in the form and/or application? The code would be the same no matter which event is being called, so it would be ideal be able to write it only once, or at least once for each form as opposed to writing it into each event in the application. In my situation, I need to deactivate a particular global class object
2
2712
by: WolfyUK | last post by:
Hello, I have a standard asp:DataGrid called CasesGrid that I wish to write my own paging controls for. The aim is to get something like the following rendered to screen: << First < Previous 1 2 3 4 5 ... Next Last >> I have achieved the first/previous/next/last buttons quite easily as follows in the ASPX (1.1) page:
2
1431
by: Xexon | last post by:
Hey Guys, I'm experiencing some really odd behavior from the simple onclick event attached to one of my buttons. I have a user control, with three buttons Save, Edit and Create. They enable different asp.net controls and that's all working fine. However when I click my save button after I have edited some data, the new data is not loaded in with the onclick event of the save button. So to speak, it just reposts all the old values and stores...
0
1139
MikeJaskov
by: MikeJaskov | last post by:
Hi. I'm working on some project so how to diasble system tray icons and clock or how to hide system tray icons and clock. Many thanks . . .
4
3289
by: csharp learner | last post by:
Hi currently with 1 combobox,textbox and a OK button which the button will enabled once my textbox is not empty. private void locacodeBox_TextChanged(object sender, EventArgs e) { TextBox textBox = sender as TextBox; if (locacodeBox.Text.Length == 0) locacodeBox.Tag = false; else locacodeBox.Tag = true; ValidateButton(); }
0
8828
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
9537
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
9367
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...
0
9243
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
8241
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
6795
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
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2780
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.