I’m using prettypopin Modal(Stéphane Caron) to Edit my FormView. Looks like it’s only working with regular submit button.
<input type="submit" value="Submit" id="buttSubmit" />
But it’s not working with any .net buttons(asp:button, asp:LinkButton). Does anyone has any suggestions?
Or can you recomend any other jQuery Modals, for editing that works with asp.net controls?
Thanx.
This is because the modal is being removed from the DOM and replaced at the end of the document just before the
</body>tag. you will need to modify the jQuery to place items before the</form>tag for this to work.edit:
in the source for prettypopin in the buildpopin function, there is a line that looks like:
you will want to change this to:
this is because jquery is removing the form within the modal dialog and replacing it AFTER the form tag, which is why it is not posting back. you will see this in action if you use firefox’s “View Generated Source”