473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

AJAX: modal popup extender

Hi all

Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net,
visual studio 2008):
I have created a user control (e-mail enquiry form) which is designed to
accept text input then send an e-mail.

The user control has 2 views – view 1 –e-mail input form, view 2
confirmation that e-mail has been sent.

View 1:
There are 4 text boxes submit, reset and close buttons.
Validation is required on the text boxes.
When the form passes validation an e-mail is sent

View 2:
Label showing “thank you..“ message and their e-mail address
The close button is visible in both views

The modal popup extender shows the above user control fine, but when the
user clicks on the submit and reset buttons the popup disappears.

I’ve seen some discussion about this but nothing seems to be a ’defacto’
method of allowing the popup to carry out code behind / validation functions
without the popup disappearing.
Here’s what i need to achieve:

1. Show popup
2. Let user enter text, click submit or reset buttons without closing popup
3. Allow validation to take place
4. If form passes validation show view 2 (confirmation)
5. Allow user to click ‘close button’ at anytime

Any pointers would be gratefully received.

Sep 8 '08 #1
5 10832
the easiest way is to have a second popup thats the please wait panel. I put
this on the master page, and call it via the RegisterOnSubmitStatement.

-- bruce (sqlwork.com)
"James Page" wrote:
Hi all

Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net,
visual studio 2008):
I have created a user control (e-mail enquiry form) which is designed to
accept text input then send an e-mail.

The user control has 2 views – view 1 –e-mail input form, view 2
confirmation that e-mail has been sent.

View 1:
There are 4 text boxes submit, reset and close buttons.
Validation is required on the text boxes.
When the form passes validation an e-mail is sent

View 2:
Label showing “thank you..“ message and their e-mail address
The close button is visible in both views

The modal popup extender shows the above user control fine, but when the
user clicks on the submit and reset buttons the popup disappears.

I’ve seen some discussion about this but nothing seems to be a ’defacto’
method of allowing the popup to carry out code behind / validation functions
without the popup disappearing.
Here’s what i need to achieve:

1. Show popup
2. Let user enter text, click submit or reset buttons without closing popup
3. Allow validation to take place
4. If form passes validation show view 2 (confirmation)
5. Allow user to click ‘close button’ at anytime

Any pointers would be gratefully received.
Sep 8 '08 #2
Thanks Bruce - but I really need a solution to fit in with the controls as
they stand. Although I can see what you're suggesting its not really what I
need.

Thanks

"bruce barker" wrote:
the easiest way is to have a second popup thats the please wait panel. I put
this on the master page, and call it via the RegisterOnSubmitStatement.

-- bruce (sqlwork.com)
"James Page" wrote:
Hi all

Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net,
visual studio 2008):
I have created a user control (e-mail enquiry form) which is designed to
accept text input then send an e-mail.

The user control has 2 views – view 1 –e-mail input form, view 2
confirmation that e-mail has been sent.

View 1:
There are 4 text boxes submit, reset and close buttons.
Validation is required on the text boxes.
When the form passes validation an e-mail is sent

View 2:
Label showing “thank you..“ message and their e-mail address
The close button is visible in both views

The modal popup extender shows the above user control fine, but when the
user clicks on the submit and reset buttons the popup disappears.

I’ve seen some discussion about this but nothing seems to be a ’defacto’
method of allowing the popup to carry out code behind / validation functions
without the popup disappearing.
Here’s what i need to achieve:

1. Show popup
2. Let user enter text, click submit or reset buttons without closing popup
3. Allow validation to take place
4. If form passes validation show view 2 (confirmation)
5. Allow user to click ‘close button’ at anytime

Any pointers would be gratefully received.
Sep 8 '08 #3
onsubmit happens after validation, so it the right time to open the please
wait popup.

-- bruce (sqlwork.com)
"James Page" wrote:
Thanks Bruce - but I really need a solution to fit in with the controls as
they stand. Although I can see what you're suggesting its not really what I
need.

Thanks

"bruce barker" wrote:
the easiest way is to have a second popup thats the please wait panel. I put
this on the master page, and call it via the RegisterOnSubmitStatement.

-- bruce (sqlwork.com)
"James Page" wrote:
Hi all
>
Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net,
visual studio 2008):
I have created a user control (e-mail enquiry form) which is designed to
accept text input then send an e-mail.
>
The user control has 2 views – view 1 –e-mail input form, view 2
confirmation that e-mail has been sent.
>
View 1:
There are 4 text boxes submit, reset and close buttons.
Validation is required on the text boxes.
When the form passes validation an e-mail is sent
>
View 2:
Label showing “thank you..“ message and their e-mail address
The close button is visible in both views
>
The modal popup extender shows the above user control fine, but when the
user clicks on the submit and reset buttons the popup disappears.
>
I’ve seen some discussion about this but nothing seems to be a ’defacto’
method of allowing the popup to carry out code behind / validation functions
without the popup disappearing.
Here’s what i need to achieve:
>
1. Show popup
2. Let user enter text, click submit or reset buttons without closing popup
3. Allow validation to take place
4. If form passes validation show view 2 (confirmation)
5. Allow user to click ‘close button’ at anytime
>
Any pointers would be gratefully received.
>
Sep 8 '08 #4
Thanks for your reply Bruce but...

The whole point in me creating the user control is that it allows the form
and coding to be contained within one control. Rather than seperating out
over a couple of pop ups etc. Also it makes designing the site a whole lot
easier if I can keep everything in seperate 'containers'.

What I need is a way of controlling the pop up from code behind so that It
behaves just like any other normal aspx page, but with the benefit of being
modal. Hope that makes sense?

"bruce barker" wrote:
onsubmit happens after validation, so it the right time to open the please
wait popup.

-- bruce (sqlwork.com)

Sep 9 '08 #5
Hi,
Here you can find the complete solution..
http://ramcrishna.blogspot.com/2008/...pextender.html
Sep 24 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Not Me | last post by:
Hey, I'm using the MS AJAX libraries to achieve a modal popup window. Prior to using the toolkit control, I have a gridview and detailsview objects visible on the page.. when the gridview row...
1
by: Samuel Rhodes | last post by:
hi i am using a ajax modal popup to allow the user to search an item and select the required item from the list. whenever i try to search the item, which causes a post back....the modal popup...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
1
by: Jamie Sutherland | last post by:
Hi , On my page I have updatepanel 2 buttons, 2 modalpopup extenders panel with a updatepanel and some textboxes in it. I want to use the 2 buttons to open the same panel using the...
16
malav123
by: malav123 | last post by:
Hi, I am using Ajax's modal popup extender to display the information about all the rows of gridview but the problem is when page loads, modal popup extender loads for all the...
10
malav123
by: malav123 | last post by:
Hi, In my master page i have right pannel, in which i am using the user control and collapsiblePanelExtender and in that right panel there is one link button named "Event", so...
3
by: jarremw | last post by:
hello all, what i have is a modal popup control extender, i have an ajax script that saves the value of the two textboxes that are in the popup, what i am needing is a way to insert those values into...
1
malav123
by: malav123 | last post by:
Hi, In my master page i have right pannel, in which i am using the user control and collapsiblePanelExtender and in that right panel there is one link button named "Event", so if user clicks on that...
1
by: mistryman06 | last post by:
Hi, I'm new to the ASP.NET Ajax. Im struck with an issue. Im having a tabcontainer with 3 tabs. Each tab has a user control (all 3 tab has the same user control) & the user control has a Button &...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.