Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Can't find Controls - WebForms w/ nested Master pages

オープン
#58 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp
領域
testing-qa

調査の方向性

再現コード内の WebApplicationProxy.Create と GetPageByLocation の呼び出しから始め、ネストされた Master Page の例について page.RunToEvent(WebFormEvent.Init) と FindControl("btnTest") を追跡します。WebForms がネストされた Master Page を使用する場合にコントロールを見つけられること(示されている Site1.master 構造を含む)が完了の条件です。

索引モデルが issue の本文から書いたものです。

説明

Has anyone had any success using WebFormsTest with nested Master Pages in WebForms?

I'm able to get WebApplicationProxy.Create to run, and WebApplicationProxy.GetPageLocation to run just fine, but controls are never able to be found.


WebApplicationProxy.Create(typeof(Platform.applications.applications), options);
var page= WebApplicationProxy.GetPageByLocation<Platform.applications.test>("/applications/test.aspx");
page.RunToEvent(WebFormEvent.Init);

var testControl= page.FindControl("btnTest");  // no controls are ever found recursively or otherwise.

Here is an example Master-page that inherits from a nested Master Page

<%@ Master Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="Platform.applications.Site1" %>
<%@ MasterType VirtualPath="~/Main.Master" %>

<asp:Content ID="Content2" ContentPlaceHolderID="m" runat="server">
    <asp:ContentPlaceHolder ID="m" runat="server">
    </asp:ContentPlaceHolder>
</asp:Content>`

Thanks

主要言語
JavaScript
スター
26
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

csharpfritz/WebFormsTest のほかの issue

csharpfritz/WebFormsTest の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。