インターネットでページをめくる方法について複数の提案を見つけましたが、残念ながら、これまでのところそのうちの 1 つを実装して、default.aspx ページから secondpage.aspx ページへのページめくりを実現できませんでした。私は次のことを試しました:
asp:LinkButton の onclick.event を使用して、次の vb.codebehind メソッドを呼び出す
Protected Sub OpenSecondPage()
Server.Transfer("secondpage.aspx")
End Sub
Protected Sub OpenSecondPage()
Response.Redirect("secondpage.aspx")
End Sub
どちらの場合も、「このコンテンツはフレームに表示できません」というエラー メッセージが表示されます。
これらの JavaScript 関数を使用すると、同じエラーが発生します。
function GetFacebookId() {
FB.api('/me', function (response) {
document.getElementById("fbId").value = response.id;
document.getElementById("fbName").value = response.name;
window.location.replace="http://apps.facebook.com/myapp/secondpage.aspx";
})
}
function GetFacebookId() {
FB.api('/me', function (response) {
document.getElementById("fbId").value = response.id;
document.getElementById("fbName").value = response.name;
window.location.href="http://apps.facebook.com/myapp/secondpage.aspx";
})
}
また、vb.codebehind サブを呼び出す JavaScript を使用して、buttonclick.event をシミュレートしようとしました。これは私の PC からは機能しているように見えましたが、明らかにこれはブラウザーの一般的なセキュリティ設定によってブロックされており、一般的に眉をひそめています。
2年目の職業訓練を始めたばかりで、現時点ではアイデアがありません。どんな助けでも大歓迎です。ありがとうございました。
これは私の secondpage.aspx サイトのコードです:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Woerterbuch.aspx.vb" Inherits="Facebook2SeitenLoesung.secondpage" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.7.0, Culture=neutral, PublicKeyToken=somenumber" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.7.0, Culture=neutral, PublicKeyToken=somenumber" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>