Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# jQuery移动ASP.NET MVC3错误_C#_Asp.net Mvc 3_Jquery Mobile - Fatal编程技术网

C# jQuery移动ASP.NET MVC3错误

C# jQuery移动ASP.NET MVC3错误,c#,asp.net-mvc-3,jquery-mobile,C#,Asp.net Mvc 3,Jquery Mobile,我正在尝试使用jQuery mobile和ASP.NET MVC 3开发一个移动站点。我有一个简单的登录视图,如下所示: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>@ViewBag.Title</title> <link href="@Links.Content.Site_css" rel="stylesheet"

我正在尝试使用jQuery mobile和ASP.NET MVC 3开发一个移动站点。我有一个简单的登录视图,如下所示:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Links.Content.Site_css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />

    <script src="@Links.Scripts.jquery_1_5_1_min_js" type="text/javascript"></script>
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.js"></script>
</head>

<body>
    <div data-role="page">
        <div data-role="header">
            <h1>Login</h1>
        </div>
        <div data-role="content">
           @using (Html.BeginForm())
{ 

<div data-role="fieldcontain">
    <label for="username">Username:</label>
    <input type="text" name="username" id="username" value="" />
</div>
<div data-role="fieldcontain">
    <label for="password">Password:</label>
    <input type="password" name="password" id="password" value="" />
</div>

<div data-role="fieldcontain">
    <fieldset data-role="controlgroup">
        <legend></legend>
        <input type="checkbox" name="rememberMe" id="rememberMe" class="custom" />
        <label for="rememberMe">Remember Me</label>
    </fieldset>
</div>

<input type="submit" value="Login" data-theme="e" />

}
            </div>
        <div data-role="footer">
                          </div>
    </div>

</body>
</html>
单击登录按钮时,我只想将用户重定向到主屏幕。但由于某种原因,我得到了以下错误:

Microsoft JScript运行时错误:无法获取属性“\u触发器”的值:对象为null或未定义 行号2371:to.data(“page”)。_触发器(“beforeshow”,null,{prevPage:from | |$(“”))


有人能帮我解决这个问题吗

必须在页面上包含带有标记的div
[data role=“page”]

<div data-role="page" data-theme="b"></div>

<div data-role="page" data-theme="b"></div>