Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Problem update panel event fires twice
Amol
13y
3.8k
1
Reply
here update panel event fires twice as i clicked on button
and record inserted twice why it is happening donno
please help
Collapse
|
Copy Code
<
asp:UpdatePanel
ID
="upanelfolder"
runat
="server"
UpdateMode
="Conditional">
<
ContentTemplate
>
<asp:Label ID="Label1" runat="server" Text= <%=prod_name %>
Collapse
|
Copy Code
</
ContentTemplate
>
<
Triggers
>
<
asp:AsyncPostBackTrigger
ControlID
="btn"
EventName
="Click"
/>
</
Triggers
>
</
asp:UpdatePanel
>
<asp:Button ID="btn" runat="server" OnClick="btn_Click" Text="Add" />
code behind
Collapse
|
Copy Code
Protected
Sub
btn_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
btn.Click //insert query
End
Sub
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
JSON question
ReadyState