<div id="div">"partial view"</div>

does not work (does not load the partial view) in IE9
It works perfrectly on firefox and chrome

What is the solution?
thanks in advance

5 Years
Discussion Span
Last Post by stbuchok

Whats the code for the _partialview page? That will be better to look at than a 2 line code that no one can help you with.


From the code I'm looking at IE9 is the only one doing it right. You haven't closed the single quote for the location of the file.


quote is a mistake happened when copying code. Sorry for that

this is my partialview

<div class="body_txt width_640" style="margin-top: 20px; display: inline-block; float: left;">
        <table style=" width:640px; border:0;"  cellspacing="0" cellpadding="0" class="table_shop01 body_txt">

                    <th style=" width:60%; text-align: left;">Selected Items</th>
                    <th style=" width:40%; text-align: left; border-right:2px solid #759C12;">Unit Price</th>

                @foreach (var item in Model.ListOfProducts)
                    string k = @item.PriceListItemID.ToString();
                        <td style="text-align: left; border-left:1px solid #759C12;">@item.ProductName</td>

                        <td style="text-align: left;">@item.Price.ToString() @item.CurrencySymbol</td>

                        <td style="text-align:left;">@item.TotalPrice @item.CurrencySymbol</td>*@
                        <td style="text-align: left; border-bottom:0;border-right:0;border-top:0; width:auto;">
                        <button type="button" class="btn_delete_2" id="@k" name="RemoveID" value="@item.PriceListItemID" style="display:none;"></button>


                    <th id="total" colspan="1" style="text-align:left; border-right:2px;">Grand Total </th>


here s how i am calling the partial view ..

 <div id="PartialView"></div>

   $(document).ready(function() {
        $('#PartialView').load('/contoller/_PartialView') ;


Thank you.
Appreciate your kindly help.

p.s - this works fine in firefox and chrome only IE give the problem.

Edited by jrosh


So what is the error that IE is throwing? On what line is the error happening? What does the HTML look like when it is rendered?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.