Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこれを持っています...
<asp:HiddenField ID="lbWGyear" runat="server" Value='<%# Bind("Workgroup") %>' />
Workgroup は、「S1」、「S2」、「S3」などの値の char(3) を返すフィールドです。
上記の bind() 関数を記述して、「S1」の「1」や「S2」の「2」など、上記の値から単一の文字を返すにはどうすればよいですか?
ありがとう
returnStr = returnStr.Substring(1);methodのように戻り文字列を置き換えますBind("Workgroup")。
returnStr = returnStr.Substring(1);
Bind("Workgroup")