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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -