現在,當用戶登錄時,他們看到在同一頁面上的具體內容:在登錄時顯示不同的頁面
<asp:LoginView ID="LoginView" runat="server">
<AnonymousTemplate>
Please login <br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:qcvalues_testConnectionString %>"
SelectCommand="SELECT * FROM [batchinfo]"></asp:SqlDataSource>
<asp:Login ID="LoginControl" runat="server" />
</AnonymousTemplate>
<LoggedInTemplate> you are logged in </LoggedInTemplate> ................
,如果我做Response.Redirect()
到另一頁假設default2.aspx
- 如何保證除非用戶登錄,否則用戶無權訪問default2.aspx
?
但是我希望用戶被引導至不同的頁面時,他們在被記錄。
的Response.Redirect()? –
@jjd謝謝我在底部 –
@jjd也總初學者在那裏woudl我把Response.Redirect的補充幾句話? –