我想将隐藏的 openid 数据发布到一个动作中,在 Razor 中我使用以下代码:
@Html.Hidden("OpenID", Request.QueryString["openid"]);
然后我收到此错误:
Compiler Error Message: CS0012: The type 'System.Data.Linq.Binary' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Source Error:
Line 11:
Line 12: <form method="post" action="Register">
Line 13: @Html.Hidden("OpenID", Request["openid"]);