Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
Hi,

I have loaded a partial view dynamically from an sqlstored procedure and added as child of a masterpage.All the  styles are affected but the javascript(menu_script.js)

Here is my masterpage
<!DOCTYPE html>
@{
    ViewBag.Title = "payroll_master";
}
 <html lang="en">
<head>
<title>Payroll User</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="@Url.Content("~/css/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/css/style.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/css/menu_style.css")" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="container">
        <div class="row-fluid padng">
            @{ Html.RenderPartial("partial_Payrollmenu", "PayrollClient"); }
            @RenderBody()
        </div>
    </div>
<script src="@Url.Content("~/js/jquery-1.10.1.js")" type="text/javascript"></script>

@* <script src="@Url.Content("~/js/bootstrap.min.js")" type="text/javascript"></script>*@
<script src="@Url.Content("~/Scripts/json.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Custom_js/common.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Custom_js/Connection.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Custom_js/menu.js")" type="text/javascript"></script>
<script src="@Url.Content("~/js/menu_script.js")" type="text/javascript"></script>
</body>
</html>


My Partial view Page

XML
<div class="span12" id="div1">
</div>



Here is my Jquery call

C#
$(document).ready(function (e) {

    info = [];
    var userId = $('#lblUserName').text();
    if (userId.length > 0) {
        mvc3_crunch.common.GetData('/menu/getmenu', "UserId=" + userId, null, OnSuccessCall, OnErrorCall);
    }
});
var OnSuccessCall = function (result) {

    $("#div1").html(result.toString());

}



Please help me

Thanks & Regards,
Soumya
Posted
Updated 17-Jun-13 23:33pm
v2
Comments
Teenustar 8-Jul-13 15:12pm    
Not clear with your question. explain what is the issue u are facing.

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

  Print Answers RSS


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