Click here to Skip to main content
15,912,756 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,sorry for bad english

i am calling fancy box from CreateEvent.cshtml page, fancy box having four text fields and save button,when save button clicks , i want fancy box text fields data to display in a textbox in CreateEvent.cshtml page with comma separation. i don't want my CreateEvent.cshtml page to reload.

my fancy box code:
HTML
<table>

      
             <tr>
                <td>
                 @Html.LabelFor(m => m.Address1)
                </td>
                <td>
                    @Html.TextBoxFor(m => m.Address1})
                   
                </td>
            </tr>
             <tr>
                  <td>
                   @Html.LabelFor(m => m.Address2)
                </td>
                <td>
                     @Html.TextBoxFor(m => m.Address1})
                      
                </td>
            </tr>
             <tr>
                <td>
                 @Html.LabelFor(m => m.City)
                </td>
                <td>
                    @Html.TextBoxFor(m => m.City)
               
                </td>
            </tr>
             
             <tr>
                <td >@Html.LabelFor(m => m.Zip)
                </td>
                <td>
                    @Html.TextBoxFor(m => m.Zip)
               
                </td>
            </tr>

             <tr>
                <td>
                   <input id="saveid" type="submit" value="Save" />  
                </td>
            </tr>
 
</table>



my createEvent.cshtml page

HTML
 <table>
 <tr>
            <td>
                @Html.LabelFor(m => m.StreetAddress1)
            </td>
            <td>
                @Html.TextBoxFor(m => m.StreetAddress1)
               
                <a href='../EventManagement/EventLocation' class='Event'>Add New Location</a>
            </td>
        </tr>
</table>


on clicking of Add New Location link fancy box opens with 4 text fields, after fancy box close i want that data displays in StreetAddress1 textbox witout page reload,
Posted
Comments
Jameel VM 9-Jul-13 4:29am    
Put jQuery Dialog and when open the dialog and set the value in to textbox using jQuery or Javascript

1 solution

Try this link for open pop up in ASP.NET MVC
http://yassershaikh.com/how-to-create-a-modal-popup-in-asp-net-mvc-3-using-jquery/[^]

Hope this helps
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900