473,699 Members | 2,615 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 954
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
3726
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
1186
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
1697
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
1319
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
1280
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
2707
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
1429
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
1137
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
3288
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
8686
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
8615
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
9173
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
8911
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
7748
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
6533
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
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
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
2345
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.