Click here to Skip to main content
15,895,881 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am new to windows application,how to use sessions and query string?
and i am using ms-access as backend.

If possible can any one please send me a sample project.


Thanks in advance
Sucharitha
Posted

Hi ,
Well in windows applications it has different concept than web application ,
You can't start coding without knowing the different between both so you should read some article
Check this
http://books.google.com.kw/books?id=ee_dZN3y6fAC&printsec=frontcover&hl=ar&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=false[^]
Best Regards
M.Mitwalli
 
Share this answer
 
v2
Windows applications have nothing to do with Session or Query String. Did you mean web applications?
 
Share this answer
 
hi Sucharitha
In windows application, we dont have properties like sessions and query string.
there are many ways to pass values from one form to another form,this is one example.
you can pass variable from one form to another form by using static variables

eg:First declare the Class with static Variables as follows

C#
Public Class className

{

   public static string strUsername=string.Empty;

}

You can assign the data to the static variable in Form1 as follows:
C#
className.strUsername=textusername.Text;

In the same way you can pass data to any where or in Forms. i hope this will help you.

Regards
sandeep
 
Share this answer
 
Comments
RagSuchi 16-Jul-12 4:55am    
Hi Sandeep
Thank you very much
sandeep nagabhairava 16-Jul-12 5:02am    
you welcome :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900