PostBackOptions.ActionUrl プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As PostBackOptions Dim value As String value = instance.ActionUrl instance.ActionUrl = value
/** @property */ public String get_ActionUrl () /** @property */ public void set_ActionUrl (String value)
Web フォーム ページのポストバックの対象の URL。既定値は空の文字列 ("") です。

PostBackOptions クラスの ActionUrl プロパティは、Web フォーム ページの action 属性の対象の URL を指定します。ActionUrl プロパティは、データをポストバックする対象の Web フォーム ページを指定して、ページ間ポストを発生させるときに使用できます。ページ間ポスティングの詳細については、「ASP.NET Web ページにおけるページ間ポスティング」を参照してください。

PostBackOptions オブジェクトの ActionUrl プロパティを使用して、ユーザーが Label コントロールの上にマウス ポインタを置いた場合にページ間ポストバックを発生させる方法を次のコード例に示します。
<%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs) Dim reference As String = Page.ClientScript.GetPostBackEventReference _ (New PostBackOptions(Me, "", "http://www.wingtiptoys.com", False, True, False, True, False, "")) Label1.Attributes.Add("onmouseover", reference) End Sub </script> <html > <head id="Head1" runat="server"> <title>ActionUrl Example Page</title> </head> <body> <form id="form1" runat="server"> <h3>PostBackOptions ActionUrl Example</h3> <asp:Label runat=server id="Label1" > Placing the mouse pointer on this label will cause a cross-page post to occur. </asp:Label> </form> </body> </html>
<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> void Page_Init(object sender, EventArgs e) { string reference = Page.ClientScript.GetPostBackEventReference (new PostBackOptions(this, "", "http://www.wingtiptoys.com", false, true, false, true, false, "")); Label1.Attributes.Add("onmouseover", reference); } </script> <html > <head runat="server"> <title>ActionUrl Example Page</title> </head> <body> <form id="form1" runat="server"> <h3>PostBackOptions ActionUrl Example</h3> <asp:Label runat=server id="Label1" > Placing the mouse pointer on this label will cause a cross-page post to occur. </asp:Label> </form> </body> </html>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPostBackOptions.ActionUrl プロパティを検索する場合は、下記のリンクをクリックしてください。

- PostBackOptions.ActionUrl プロパティのページへのリンク