---
title: "submit page within jquery dialog"  
description: "submit page within jquery dialog"  
author: "Samuel Fernandes"  
published: 2014-12-03  
updated: 2014-12-04  
canonical: https://www.mindstick.com/forum/12738/submit-page-within-jquery-dialog  
category: "asp.net"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# submit page within jquery dialog

I have something like the following

```
$("#Lookup").load(url, function () {       
$(this).dialog({          modal: true,          width: 900,          resizable:false,          draggable:false,          position:['center', 210],          title:"Lookup",          create:function (event, ui) {           }        });      });
```

The page that is loaded into the dialog has a [search button](https://answers.mindstick.com/qa/34597/what-is-site-search-button) (it is a lookup page for [records](https://www.mindstick.com/forum/34640/how-to-create-a-stored-procedure-for-display-all-records)) It returns the [results](https://yourviews.mindstick.com/story/4497/usage-of-baking-soda-magical-results) to a grid and I select [one of them](https://answers.mindstick.com/qa/47593/what-are-the-prevalent-water-proofing-systems-write-a-short-notes-on-any-one-of-them) and return it to the [parent page](https://www.mindstick.com/forum/34365/refresh-parent-page-webgrid-on-window-close-in-mvc), but obviously, clicking the search button posts the whole page back and I [end up](https://www.mindstick.com/forum/156243/how-can-i-make-sure-my-emails-don-t-end-up-in-the-spam-folder) with the [page loaded](https://www.mindstick.com/forum/515/clear-css-menu-hover-state-on-click-page-loaded-via-ajax) into the dialog becoming the parent, what I would like is the page within the dialog to [postback](https://www.mindstick.com/blog/342/postback-in-asp-dot-net), within the dialog and not affect the parent page. Can this be done?

## Replies

### Reply by Anonymous User

Consider using $.get() instead of .load().

Something like this:

```
$.get({    url: url,    success: function
(result) {        //create your
dialog and inject the content...    }});
```


---

Original Source: https://www.mindstick.com/forum/12738/submit-page-within-jquery-dialog

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
