Last post Mar 26, 2018 05:57 AM by Brando ZWZ
Mar 23, 2018 05:57 PM|Ashu___|LINK
I m new to C#. I have created a variable to get filename in form 2. I want the same variable to be accessed in form 3.
Pls help me out.
Mar 26, 2018 05:57 AM|Brando ZWZ|LINK
Welcome to asp.net forum.
Could you please tell me which project you have used ? Web form or win form?
If you want to know how to get the variable in web form 2, I suggest you could try to store the value into session.
More details about how to use session in web form, you could refer to below article.
If you want to know how to get the variable in win form 2, I suggest you could just declare your variable as static and int globally in your Form1 and access it in 2nd form.
More details about test code, you could refer to below article.
Besides, asp.net forum is mainly talking about asp.net issue.
If you have another question about win form, I suggest you could try to post the issue on below forum.