Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
please help! Enquiry form on ajax modelpopup which load one time when website is load and after filling the form and click on submit button popup will disappear
Posted 20-Dec-12 9:42am
Edited 4-Feb-13 1:48am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
I can give you an idea of how you can complete this but I'll not give you exact code so that you can do it by yourself. This is not very hard.
For modal you can use jQuery Colorbox plugin[^] to create modal popup. There are many more plugins to create a popup. You can search on google for that. Now call the modal popup in jQuery document ready function, so that on page load the modal show up.
Now you can use asp button click event to save data on clicking the button. This will cause a postback and after postback you can call a function from backend to close the colorbox.
 
I hope this will help. Let me know if you stuck anywhere.
Thanks Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I ain't sure it will help ya but you should take a look :
http://go4answers.webhost4life.com/Example/show-aspnet-modal-popup-page-load-104880.aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 320
1 Sergey Alexandrovich Kryukov 222
2 OriginalGriff 155
3 Peter Leow 115
4 Afzaal Ahmad Zeeshan 114
0 OriginalGriff 7,510
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 5,044
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100