Forum

HomeHomeCoreCoreGeneralGeneralButton not trigger postbackButton not trigger postback
Previous
 
Next
New Post
3/23/2016 3:41 PM
 

This is the 2nd issue that I faced on DNN 8.0.0 with OWS 2.2.21.


I retrieve data from DB and render it on Detail Template, and putting one button on Footer.

I expecting that when I click the button it will postback, so I can save any changes back to database.


But when I click it, no postback made.. 

<button type="button" class="btn btn-primary">Save</button>


FYI, Similar scenario works on my other website.


Any idea why its happened ? 

New Post
3/24/2016 10:04 AM
 

Hi,

The way your button is defined would not do anything. You need to either change the type to "submit " or add an onclick event. If the button has no type defined then by default it will work like a submit button.

Is that exactly how your button is defined on the other site 

Tony


Previous
 
Next
HomeHomeCoreCoreGeneralGeneralButton not trigger postbackButton not trigger postback


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share