Passing Windows User Id as parameter to SQLDataSource gives databinding exception
问题 First question is, Am I on the right path?.ıs there a better way to pass it as parameter? If I am on the right path, please show me how can I solve the below error. The following solution does not help me with this problem: HTTPContext.Current.User.Identity.Name not working inside a control? My code: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyDbConn %>" SelectCommand="SELECT id, Bookname, RequestType, Requestor, RequestDate FROM Requests