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?
Answers were Sorted based on User's Feedback
Answer / sen
Just write code on page load and ur getting a control name
which one u clicked
string ctrlname = Page.Request.Params["__EVENTTARGET"];
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / manjula
in page load,we get those data which is bind to that webform
previously,we cannot click any button in page load
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / prahlad
for that purpose they give the option is the tooltip that is
the shows the button name when you put the curser on the
button and also they might wrote the name of the button name.
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / savita
try 2 remember which button u had clicked. again select
that button, go its property window by just right click on
that button. n u get its name. which r unique.ok.
| Is This Answer Correct ? | 0 Yes | 9 No |
What is difference between view state and session state?
What is strong name and which tool is used for this ?
Explain the disadvantages of viewstate?
what is the Difference between Dim Object as object AND dim obj as myform?
Describe the differences between the lifecycles of Windows services and Standard EXE?
What data types do the RangeValidator control support?
What is the typical session identifier?
How to merge 2 tables fields in DataTable in asp.net
How many languages are supported by .NET at present time?
How can we update records in gridview?Is there any appropriate code for it?
Is it true that a Web service must be written in .NET or not?
can we edit records from repeater control
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)