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

Explain difference betn dataset and recordset?

528


What describes a query?

525


Explain the difference between server control and html control.

474


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

3402


What is Forms Authentication in ASP.NET?

577






What is a 1x1 pixel?

528


What’s difference between “optimistic” and “pessimistic” locking?

575


How can we implement a identity (sql server) call in an asp.net page?

550


What is the full form of asp.net?

529


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1440


How will you do Redo and Undo in a TextControl?

664


Tell me the code snippet to show how we can return 404 errors from HttpError?

782


What does clearing cache?

534


What is AutoPostback?

592


From which base class all web forms are inherited?

497