473,511 Members | 16,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Popup aspx page using jquery

53 New Member
Hi,

I want to popup aspx page using jquery. I have written the following code
Expand|Select|Wrap|Line Numbers
  1. <a href="Contactus.aspx?TB_iframe=true&height=250&width=200" class="thickbox" >AboutUs</a>
I have called
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="js/jquery.js"></script>
  2. <script type="text/javascript" src="js/thickbox.js"></script>
  3. <link rel="stylesheet" href="js/thickbox.css" type="text/css" media="screen" />
but in that thickbox.css there is no class with name thickbox.
can you please tell me the what is the procedure to popup page using jquery.

Thanks in Advance
Pavani
Apr 4 '09 #1
4 7255
acoder
16,027 Recognized Expert Moderator MVP
You need to set KeepThis as well - see the iFramed Content example.

The class="thickbox" is required for the JavaScript code - see the comments in the code.
Apr 4 '09 #2
pavanip
53 New Member
I tried with that IFramed code
Expand|Select|Wrap|Line Numbers
  1. <a href="Contactus.aspx?KeepThis=true&TB_iframe=true&height=400&width=600&modal=true" class="thickbox" >ConactUs</a>
but its not opening popup window just navigating to contact us page. can you please tell me anything i have missed?
Apr 5 '09 #3
pavanip
53 New Member
I used the following code also for Inline popup window but this is also not working.Please see the followed code and give me reply
Expand|Select|Wrap|Line Numbers
  1. <div>
  2.     <a href="#TB_inline?inlineId=popupdiv&height=120&width=320&inlineId=myOnPageContent" class="thickbox" >open child window</a>
  3. </div>
  4.    <div id="popupdiv" style="display:none">
  5.  
  6. <table style="width: 30%">
  7. <tr>
  8. <td >
  9. Comments :</td>
  10. <td>
  11. <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox></td>
  12. </tr>
  13. <tr>
  14. <td>
  15. </td>
  16. <td>
  17. <asp:Button ID="Button1" runat="server" Text="Save" /></td>
  18. </tr>
  19. <tr>
  20. <td >
  21. </td>
  22. <td >
  23. </td>
  24. </tr>
  25. </table>
  26. </div>
Apr 5 '09 #4
acoder
16,027 Recognized Expert Moderator MVP
Remove "&inlineId=myOnPageContent" from the URL.
Apr 5 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
4697
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in...
2
6155
by: Joe Molloy | last post by:
Hi, This isn't a mission critical question but I thought I'dl throw it out there for your feedback as it's a bit curious. I have developed a shopping cart for an application I'm working on...
1
11537
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
1
2209
by: billy | last post by:
Ok, here's the situation... I have a user control that contains two textboxes (one for a from date/time and one for a to date/time) and two image buttons. The user control itself is supposed to...
0
1475
by: Dimitrios Mpougas | last post by:
Hello, I have two asp.net pages. The first is a page (main.aspx) wich has four links on it. The href value of each link is: href="view.aspx?id=1" traget="_blank" href="view.aspx?id=2"...
2
3570
by: VMI | last post by:
I have a LinkButton_search on my Page1.aspx that opens up a popup page called popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of Page1.aspx. How can I add server-side code...
3
2181
by: Victor | last post by:
Hi guys. I want to implement a customized user webcontrol (.ascx). Inside this control I have a dropdownlist and a button. when user click the button, it will open a pop up window(not Ajax popup...
9
1772
by: Anic297 | last post by:
Hello, I'm a newbie in php. I would like to show a popup menu on my website and update the page when the user has changed its selection. I have looked over the Internet but haven't found what I...
14
646
by: mac | last post by:
Hi all, Is there a way to force pop up windows even if the browser preferences is set to block pop windows, for onload event? using javascript.... Note: for onload event
0
7356
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
7427
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
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.