473,382 Members | 1,445 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,382 software developers and data experts.

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

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 1989
nateraaaa
663 Expert 512MB
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
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
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...
1
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...
1
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...
1
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
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...
2
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...
3
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.