Using ModalBox with Asp.Net ??

145 views
Skip to first unread message

Alex

unread,
Dec 10, 2008, 4:34:11 PM12/10/08
to ModalBox
Hey guys, has anyone tried to use ModalBox with Asp.Net pages?
For me none of the button clicks work, nor does it post back the
page.....kind of strange behaviour

Burke, Bill

unread,
Dec 10, 2008, 6:36:43 PM12/10/08
to moda...@googlegroups.com

I have been asking this question for quite some time without any answer. If you find something please let me know. I switched to highslide (with success) but would rather use MB.
Thanks

********** Disclaimer - This email and any files transmitted with it are proprietary and may contain privileged or copyright information. You must not present this message to another party without gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify us. If you have received this message in error, please notify the sender immediately, and delete this email from your system. We do not guarantee that this material is free from viruses or any other defects although due care has been taken to minimize the risk. eSafe scanned this email for viruses, vandals and malicious content Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of LSI. **********

Justinas Urbanavicius

unread,
Dec 11, 2008, 2:22:02 AM12/11/08
to moda...@googlegroups.com
did you set special property for asp net on the Modalbox?

Burke, Bill

unread,
Dec 12, 2008, 12:08:19 PM12/12/08
to moda...@googlegroups.com

In the modalbox.js I changed:

                aspnet: false // Should be use then using with ASP.NET costrols. Then true Modalbox window will be injected into the first form element.

 

To:

                aspnet: true // Should be use then using with ASP.NET costrols. Then true Modalbox window will be injected into the first form element.

 

Link to open MB:

 

<a href="new_item.aspx" title="New Item" onclick="Modalbox.show(this.href, {title: this.title, width: 600, aspnet: true}); return false;"> Add New List Item</a>

 

For me the buttons work (or appear to). The page acts like it posted (refreshes to an empty form) but the item is not posted.

 

Any help would be truly appreciated.

 

Bill

Justinas Urbanavicius

unread,
Dec 12, 2008, 12:10:21 PM12/12/08
to moda...@googlegroups.com
can you send a link, i'll take a look

Burke, Bill

unread,
Dec 12, 2008, 12:17:33 PM12/12/08
to moda...@googlegroups.com

I’ll have to get back to you later today (work getting in the way….)

 

I appreciate you taking the time.

Wei Li

unread,
Dec 12, 2008, 2:54:02 PM12/12/08
to ModalBox
Try this:

<form id="form1" name="form1" method="post" action="step2.aspx"
onsubmit="return false;">
<p>Subject:
<input type="text" name="Subject" id="Subject" />
</p>
<p>Description: <br />
<textarea name="desc" id="desc" cols="45" rows="5"></textarea>
</p>
<div class="continue"><a href="#" title="test" onclick="Modalbox.show
('step2.aspx?v=2', {title: this.title, method: 'post',
params:Form.serialize('form1'), overlayClose: true }); return
false;"><img src="img/btn/submit.png" alt="Continue" width="108"
height="29" border="0" /></a></div>
</form>
> *************************************************************************** *******************
> Disclaimer - This email and any files transmitted with it are proprietary and may contain privileged or copyright information. You must not present this message to another party without
> gaining permission from the sender. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify
> us. If you have received this message in error, please notify the sender immediately, and delete this email from your system. We do not guarantee that this material is free from viruses or any
> other defects although due care has been taken to minimize the risk. eSafe scanned this email for viruses, vandals and malicious contentAny views expressed in this message are those of
> the individual sender, except where the sender specifically states them to be the views of LSI.
> *************************************************************************** *******************

Justinas Urbanavicius

unread,
Jun 15, 2012, 1:35:38 AM6/15/12
to moda...@googlegroups.com
what code ? :)

On Fri, Jun 15, 2012 at 6:58 AM, Amit Prasad <am...@meditab.com> wrote:
hi... can u send the code
--
You received this message because you are subscribed to the Google Groups "ModalBox" group.
To view this discussion on the web visit https://groups.google.com/d/msg/modalbox/-/vg8av95LKnAJ.
To post to this group, send email to moda...@googlegroups.com.
To unsubscribe from this group, send email to modalbox+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/modalbox?hl=en.



--
Justinas

Reply all
Reply to author
Forward
0 new messages