TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nilesh Sukalikar
NA
38
17.8k
Server side button click event is not working from bootstrap
Jan 5 2016 10:01 PM
Hi,
I am trying to call server side click event from my bootstrap popup . I wanted to save data . But I am unable to fire click event on button click . I checked online and they says keep your text box and button inside form tag. I also tried that as well but not working ..
I have master page , on which form element is present and updatepanel.
<
div
class
=
"modal fade"
id
=
"exampleModal"
tabindex
=
"-1"
role
=
"dialog"
aria-labelledby
=
"exampleModalLabel"
>
<
div
class
=
"modal-dialog"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
button
type
=
"button"
class
=
"close"
data-dismiss
=
"modal"
aria-label
=
"Close"
>
<
span
aria-hidden
=
"true"
>
×
</
span
>
</
button
>
<
h4
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Create State
</
h4
>
</
div
>
<
form
>
<
div
class
=
"modal-body"
>
<
div
class
=
"form-group"
>
<
label
for
=
"recipient-name"
class
=
"control-label"
>
State
</
label
>
<
asp:TextBox
class
=
"form-control"
ID
=
"txtState"
runat
=
"server"
>
</
asp:TextBox
>
</
div
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-default"
data-dismiss
=
"modal"
>
Close
</
button
>
<
asp:Button
UseSubmitBehavior
=
"false"
ID
=
"btnSave"
runat
=
"server"
Text
=
"Save"
class
=
"btn btn-primary tp"
OnClick
=
"btnSave_Click"
/>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
Reply
Answers (
4
)
Unable to display all external login buttons via Bootstrap
How to use Session in asp.net ?