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.
レコードのリストを表示するグリッドビューがあるソリューションに取り組んでいます。クリックすると詳細ページにリダイレクトされ、ID のみを保存するセッションを作成しました。すべて正常に動作します。
私の質問は次のとおりです。新しいページの残りのデータを取得するにはどうすればよいですか? この方法は可能ですか、それともすべての値をセッションに保存する必要がありますか?
試す
Session.Add(ID, valueOfID);
次の方法でアクセスできます。
string str = (string)Session[ID];