473,793 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

determin which button initiated postback in pageload event in codebehind page vb.net

2 New Member
I am trying to determine which button on my page initiated the postback. I need to make this determination during the pageload event of the codebehind page. The environment
is vb.net 2003 and .net 1.1
Jun 26 '07 #1
2 2002
nateraaaa
663 Recognized Expert Contributor
I am trying to determine which button on my page initiated the postback. I need to make this determination during the pageload event of the codebehind page. The environment
is vb.net 2003 and .net 1.1
Whenever a button is clicked it will be posted back to the server. You can test this by placing a break point in your page load event as well as your button click event and see the flow of the application.

Nathan
Jun 26 '07 #2
bbragan
2 New Member
Whenever a button is clicked it will be posted back to the server. You can test this by placing a break point in your page load event as well as your button click event and see the flow of the application.

Nathan
Thank you for your reply.
I understand the flow. I have two buttons, button1 initiates a postback and adds a table control and button2 to the page . When Button2 intiates a postback. the supporting code for it will take the contents of the table added by button1 and extract the changed fields. I need a method to determine which button initiated the postback. so that if button2 initiated it I can recreate the table control to be manipulated by the button2 codebehind.
Does this make more sense?
Jun 26 '07 #3

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

Similar topics

3
7286
by: dave | last post by:
I have half a dozen web form radio buttons on a web form. Each of them is set to postback=true. However, if for instance radiobutton1 is already selected and the user selects it again, it performs a postback. I only want to do a postback if the value of the radiobutton is changed. What is the best method to accomplish this? thx dave
1
2734
by: Divya | last post by:
Hello This is my 1st project where I have to create a Webcontrol. I have created a simple custom control with a button and 2 labels added to a panel. My problem is that the event handler that I have assigned to the button , is not getting invoked. Could anyone please go thru the code and let me know what I am missing here? Thanks in advance My custom control is as follows using System using System.Web using System.Web.UI using...
1
1181
by: seven | last post by:
I'm playing with page inheritence but I am currently stumped by postback, on a page derived from a base class. In my base page/class I have defined an HTMLForm object. It is instantiated and added to the base page's control collection during the Init event of the base page. I expose this form object to any given derived page through a public property. And this works, more or less; from the derived page, I can instantiate textboxes,...
1
1094
by: Eitan M | last post by:
Hello, Is there any way to do pageLoad event (which can generaly don in simple HTML), also in frameset. (Or other way doing events when first loading the page, All in frameset). Thanks :)
3
1226
by: needin4mation | last post by:
Hi, I have my .aspx page and its .cs codebehind page that Visual Studio created. What if I want to create a function or class in another .cs page but want to use it in the codebehind page. How can I reference this new c-sharp (or vb.net page) in the codebehind page? Thanks.
2
1614
by: | last post by:
I like the "view in browser" feature of vs.net: right click from an aspx page, and preview a working version of the page. I don't like how this can't be launched from the pages' codebehind. The "view in browser" option does not appear on the context menu of VS.NET 2005. Is there a workaround or hotkey that I can use to launch a preview from the codebehind page? -KF
3
21181
by: GauravGupta | last post by:
i want to know that is it posible to call button click event before page load event on post back.... please help me....
2
3120
by: GauravGupta | last post by:
i am displaying a table in page load whose data is fetched from database . it also check what data is to be displayed from data base by a session variable. and i have few button which change the session variable value. when i click on some button page load is called before button click event, so data which is displayed is according to previous session not the session changed by button click.
0
10433
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
10212
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
10000
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
9035
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...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
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
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.