You have two buttons in web form and i clicked on one of
the button, so how do i find which button i've clicked on
the form in my page load?

Answer Posted / vijaykumar

Just write code on page load

Response.Write(Request.Form[1].ToString());

u got button name which one u clicked.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the mvc framework?

728


Is asp.net web forms dead?

709


In a Repeater control how one can provide an alternating color scheme ?

763


How would you enable impersonation in the web.config file?

710


what is a .xap file? Explain with an example.

755






Explain the difference between asp and asp.net?

694


What are the features of asp net?

691


To redirect the user to another page which method do we use without performing a round trip to the client?

708


Which tool you have done?

1643


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

1587


Explain difference between dataset and datareader?

776


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

746


How many types of validation are there?

693


Why do we need master page in asp.net?

695


What's the difference between viewstate and sessionstate?

786