Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
UpdatePanel Not works fine
Nilesh Patil
Oct 30 2017 1:58 AM
165
Reply
Hi,
When I use Button inside Update panel it doesnot fire click event but outside the update panel it works.
here is the code
<
asp:UpdatePanel
ID
=
"updatePanel1"
runat
=
"server"
UpdateMode
=
"Conditional"
ChildrenAsTriggers
=
"true"
>
<
ContentTemplate
>
<
asp:Button
ID
=
"LinkButton1"
runat
=
"server"
class
=
"btn btn-primary"
Style
=
"color: #fff; background-color: #337ab7; border-color: #2e6da4; display: inline-block; padding: 6px 8px; margin-bottom: 0; border: 1px solid transparent; border-radius: 4px;"
OnClick
=
"LinkButton1_Click"
Text
=
'<%#Eval("Row#") %>'
/>
</
ContentTemplate
>
<
Triggers
>
<
asp:AsyncPostBackTrigger
ControlID
=
"LinkButton1"
EventName
=
"Click"
/>
</
Triggers
>
</
asp:UpdatePanel
>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
What topics do I need to cover in C# ASP.NET to become a pro
Can't run ASP.NET MVC Project on Visual Studio 2015