Bootstrap - open modal after postback only after button click c# -
i have implemented modal popup on site capture email addresses. once user clicks submit button form submitted. calling modal again after page.ispostback works fine. however, want display after user clicks particular submit button. on master page, if goes 'contact us' page , submits question on postback modal reappears don't want. literally want appear after postback submit form on modal.
any ideas how can around this?
thanks
rob
to display modal
after user clicks submit button, should put modal
's display logic in button's submit event.
take logic out of page_load
's ispostback
, , put @ end of button
's onclick
event
protected void button_click(object sender, eventargs e) { // work... // show modal }
Comments
Post a Comment