473,941 Members | 4,894 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

check if button was clicked (in page_load)

Hi there!
I got some LinkButtons, all declared as "Public Withevents buttonName
as LinkButton". I know the button names and IDs.
Now I want to check in the Page_Load Method which button was clicked
(depending on which button was clicked I'll fill my datagrid), but I
don't know how...

I can make "Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles MyBase.Load, buttonOne.Click " but
throught sender and e I only get the type
(System.Web.UI. WebControls.Lin kButton) but not the ID or something
else (I also tried working with the CommandEventArg s but I can't add
"ByVal cea as CommandEventArg s" into the brackets of Page_Load)...

How could I solve this? thanks in advance
Nov 21 '05 #1
0 1396

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

Similar topics

3
3292
by: Claire Osborne | last post by:
I have created a form at http://www.habitatforhumanity.org.uk/html/gv_indiv_apply.htm In the Medical Details section we need to ensure that if a radio button is clicked to indicate a health issue then the textarea box is filled in. Is there a way to do this? I am not an expert in Javascript so please treat me as stupid!
3
1680
by: TJS | last post by:
trying to get 2 scripts to run when a button is clicked. The first is a confirm which should only run the second script if true. the problem is the second script doesn't run when "ok" is selected on the confirm. What's wrong? <INPUT TYPE="Image" src="../images/shop.gif" BORDER=0 TITLE="Continue Shopping" onclick="javascript: confirm('The selected items will be saved. \n Do you wish to proceed?');...
2
1829
by: Patrick | last post by:
i have the following .aspx file defined: ..... other tags here ... <asp:TableCell><asp:button id="AddButton" Runat="server" Text="Add New Vessel..."</asp:button></asp:TableCell> ..... other tags here ... i also have the following codebehind class code to set the action of the button on click to run a modal dialog as follows: Page_Load ..... load code here ... AddButton.Attributes.Add("onclick",...
1
1743
by: Veeresh | last post by:
When I enter some data in textbox1 and hit enter key resulting in calling the clicked event of Button1. What I am doing wrong here? -- Veeresh Here is my code. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm2.aspx.vb" Inherits="Test001.WebForm2"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD>
0
2198
by: Grayzag | last post by:
Hi there, As part of my Software course, i have to create a game. Since I originally started out with python, I was used to it being really easy to create a main loop to control the game with a simple while statement, pausing where input is needed from the user. Now that I have moved on to VB, I can seem to find a way to pause the while statements until the user does something (e.g. clicks a button). When i start my app, if just throws...
2
1555
by: John | last post by:
Hi, I would like to create an eventhandles that handles several different buttons. How can I detect which button was clicked on ? I know it something with the sender ... something like
4
9344
by: Hema243 | last post by:
Hi Can anybody provide me code for this When back or next button is clicked i want to go to next window/form and when back button is clicked i want to go to previous window /form in vb.net windows application. Plz provide me solution for this. Rgds Hema.
13
1955
by: wireshark | last post by:
hi again... :) please help me,how to make a check button,so the user can check which one to delete...and how to implement it with "delete" selected check button? <? while($row=mysql_fetch_assoc($result)){ echo "<table width ='100%' border='1'>"; echo " <tr> <td width = '10%'> $row </td>
3
11527
matrekz42
by: matrekz42 | last post by:
This may seem extremely simple, but I want to have in VB a code that will change the width of a TextBox when a button in the form is clicked. How can I go about this?
0
11530
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
11117
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
11296
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
10659
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
9860
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
8218
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
6080
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
6299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4487
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.