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.
セッション、クエリ文字列などを使用して aspx から aspx ファイルに値を渡すことができますが、aspx から class.cs ファイルに値を渡したいです。値を取得する方法。どんな体でも私を助けることができますか?少し早いですがお礼を。
aspx.csで
decimal Total=textbox1.Text+textbox2.Text
クラスで
class sample { Public void Display(decimal total) { } }
合計をクラスメソッドに渡し、aspx.csファイルの最初のステートメントの後にこれを書き込みます
new sample().Display(Total)
以下のコードを使用して JSON データを解析しようとしています。Web サイトには API キーが必要です。これは今のところ、strings.xml に文字列として保存されています。
public class JSONParser { static InputStream is = null; static JSONArray jarray = null; stat