会话和查询字符串 [英] Sessions and query strings

查看:64
本文介绍了会话和查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是Windows应用程序的新手,如何使用会话和查询字符串?
我正在使用ms-access作为后端.

如果可以的话,请给我发送示例项目.


在此先感谢
Sucharitha

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

推荐答案


在Windows应用程序中,它的概念与Web应用程序不同,
在不了解两者之间的区别之前就无法开始编码,因此您应该阅读一些文章
检查此
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 [
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


Windows应用程序与会话或查询字符串无关.您是说Web应用程序吗?
Windows applications have nothing to do with Session or Query String. Did you mean web applications?


hi Sucharitha
在Windows应用程序中,我们没有会话和查询字符串之类的属性.
将值从一种形式传递到另一种形式的方法有很多,这是一个示例.
您可以使用静态变量将变量从一种形式传递到另一种形式

例如:首先使用静态变量声明类,如下所示

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

Public Class className

{

   public static string strUsername=string.Empty;

}


您可以将数据分配给Form1中的静态变量,如下所示:


You can assign the data to the static variable in Form1 as follows:

className.strUsername=textusername.Text;


以相同的方式,您可以将数据传递到任何位置或表单中.希望对您有帮助.

问候
sandeep


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

Regards
sandeep


这篇关于会话和查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆